summaryrefslogtreecommitdiff
path: root/rtt-module.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-16 00:59:25 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-16 00:59:25 +0100
commit644b052216cfce9963c2c59f04a9ca368e1e1d9c (patch)
treeafcae1c28b3d8d11e6b314c0ecb13dc9b575950f /rtt-module.js
parentb35636f00fa0710125e0ae4569fbdf6f14806763 (diff)
downloadfuzzer-644b052216cfce9963c2c59f04a9ca368e1e1d9c.tar.gz
Set global RTT_FUZZER variable.HEADmaster
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.
Diffstat (limited to 'rtt-module.js')
-rwxr-xr-xrtt-module.js2
1 files changed, 2 insertions, 0 deletions
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.")