From 60d7b73bb165c812a277215d881170d8eab3c720 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Mon, 28 Aug 2023 20:42:37 +0200 Subject: track crashes of the view calls --- rtt-module.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'rtt-module.js') 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) -- cgit v1.2.3