summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-08-28 20:42:37 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-08-28 20:42:37 +0200
commit60d7b73bb165c812a277215d881170d8eab3c720 (patch)
tree766e22d225cbd099960c0a275563f2963e6a8562
parentc8fcc8e64d06efdba2dce255d94737fa6786ad14 (diff)
downloadfuzzer-60d7b73bb165c812a277215d881170d8eab3c720.tar.gz
track crashes of the view calls
-rwxr-xr-xrtt-module.js8
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)