diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-08-28 20:42:37 +0200 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-08-28 20:42:37 +0200 |
commit | 60d7b73bb165c812a277215d881170d8eab3c720 (patch) | |
tree | 766e22d225cbd099960c0a275563f2963e6a8562 | |
parent | c8fcc8e64d06efdba2dce255d94737fa6786ad14 (diff) | |
download | fuzzer-60d7b73bb165c812a277215d881170d8eab3c720.tar.gz |
track crashes of the view calls
-rwxr-xr-x | rtt-module.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rtt-module.js b/rtt-module.js index 6ff8dfd..ceb795d 100755 --- a/rtt-module.js +++ b/rtt-module.js @@ -46,7 +46,13 @@ module.exports.fuzz = function(fuzzerInputData) { active = data.pickValue(RULES.roles) } - let view = RULES.view(state, active) + let view = {} + try { + view = RULES.view(state, active) + } catch (e) { + log_crash(game_setup, state, view, step, active) + throw new RulesCrashError(e, e.stack) + } if (step > MAX_STEPS) { log_crash(game_setup, state, view, step, active) |