From 644b052216cfce9963c2c59f04a9ca368e1e1d9c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 16 Nov 2024 00:59:25 +0100 Subject: Set global RTT_FUZZER variable. So modules can detect if they're running in the fuzzer, in case they need to disable certain features that are problematic when run by the fuzzer. --- rtt-module.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtt-module.js b/rtt-module.js index 0dfa642..b8f1d56 100755 --- a/rtt-module.js +++ b/rtt-module.js @@ -22,6 +22,8 @@ if (!fs.existsSync(RULES_JS_FILE)) { const RULES = require(RULES_JS_FILE) const TITLE_ID = path.basename(path.dirname(RULES_JS_FILE)) +globalThis.RTT_FUZZER = true + let rules_view_schema = null if (!NO_SCHEMA && RULES.VIEW_SCHEMA) { console.log("View schema found; validating.") -- cgit v1.2.3