From 033555b3e70903c048f94d5ed038cc299435a1f3 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Thu, 4 Jan 2024 10:08:15 +0100 Subject: deal with object scenarios --- rtt-module.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtt-module.js b/rtt-module.js index 127507e..b1df281 100755 --- a/rtt-module.js +++ b/rtt-module.js @@ -28,7 +28,8 @@ module.exports.fuzz = function(fuzzerInputData) { return } let seed = data.consumeIntegralInRange(1, 2**35-31) - let scenario = data.pickValue(RULES.scenarios) + let scenarios = Array.isArray(RULES.scenarios) ? RULES.scenarios : Object.values(RULES.scenarios).flat() + let scenario = data.pickValue(scenarios) // TODO randomize options const options = {} -- cgit v1.2.3