diff options
Diffstat (limited to 'tools/lint/eslint/eslint-plugin-spidermonkey-js/lib')
-rw-r--r-- | tools/lint/eslint/eslint-plugin-spidermonkey-js/lib/environments/self-hosted.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lint/eslint/eslint-plugin-spidermonkey-js/lib/environments/self-hosted.js b/tools/lint/eslint/eslint-plugin-spidermonkey-js/lib/environments/self-hosted.js index 37ae42bfa3..bf7069510c 100644 --- a/tools/lint/eslint/eslint-plugin-spidermonkey-js/lib/environments/self-hosted.js +++ b/tools/lint/eslint/eslint-plugin-spidermonkey-js/lib/environments/self-hosted.js @@ -149,7 +149,8 @@ function selfHostingFunctions() { let content = tryReadFile("js/src/vm/SelfHosting.cpp").replace(/\s+/g, ""); let globals = Object.create(null); - for (let m of content.matchAll(/(?:JS_FN|JS_INLINABLE_FN)\("(\w+)"/g)) { + let re = /(?:JS_FN|JS_INLINABLE_FN|JS_TRAMPOLINE_FN)\("(\w+)"/g; + for (let m of content.matchAll(re)) { globals[m[1]] = "readonly"; } return globals; |