diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-16 00:59:25 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-16 00:59:25 +0100 |
commit | 644b052216cfce9963c2c59f04a9ca368e1e1d9c (patch) | |
tree | afcae1c28b3d8d11e6b314c0ecb13dc9b575950f /rtt-module.js | |
parent | b35636f00fa0710125e0ae4569fbdf6f14806763 (diff) | |
download | fuzzer-644b052216cfce9963c2c59f04a9ca368e1e1d9c.tar.gz |
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-x | rtt-module.js | 2 |
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.") |