summaryrefslogtreecommitdiffstats
path: root/tools/lint/eslint/eslint-plugin-mozilla/lib/environments
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lint/eslint/eslint-plugin-mozilla/lib/environments')
-rw-r--r--tools/lint/eslint/eslint-plugin-mozilla/lib/environments/privileged.js1
-rw-r--r--tools/lint/eslint/eslint-plugin-mozilla/lib/environments/sysmjs.js (renamed from tools/lint/eslint/eslint-plugin-mozilla/lib/environments/jsm.js)8
2 files changed, 4 insertions, 5 deletions
diff --git a/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/privileged.js b/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/privileged.js
index c517de6209..7e6437ce7a 100644
--- a/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/privileged.js
+++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/privileged.js
@@ -142,7 +142,6 @@ module.exports = {
DOMRect: false,
DOMRectList: false,
DOMRectReadOnly: false,
- DOMRequest: false,
DOMStringList: false,
DOMStringMap: false,
DOMTokenList: false,
diff --git a/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/jsm.js b/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/sysmjs.js
index 30d8e0eb9c..03fe80e5c4 100644
--- a/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/jsm.js
+++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/sysmjs.js
@@ -1,5 +1,5 @@
/**
- * @fileoverview Defines the environment for jsm files.
+ * @fileoverview Defines the environment for sys module files.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -10,7 +10,7 @@
module.exports = {
globals: {
- // These globals are hard-coded and available in .jsm scopes.
+ // These globals are hard-coded and available in .sys.mjs scopes.
// https://searchfox.org/mozilla-central/rev/dcb0cfb66e4ed3b9c7fbef1e80572426ff5f3c3a/js/xpconnect/loader/mozJSModuleLoader.cpp#222-223
// Although `debug` is allowed for jsm files, this is non-standard and something
// we don't want to allow in mjs files. Hence it is not included here.
@@ -18,8 +18,8 @@ module.exports = {
btoa: false,
dump: false,
// The WebAssembly global is available in most (if not all) contexts where
- // JS can run. It's definitely available in JSMs. So even if this is not
- // the perfect place to add it, it's not wrong, and we can move it later.
+ // JS can run. It's definitely available in system modules. So even if this
+ // is not the perfect place to add it, it's not wrong, and we can move it later.
WebAssembly: false,
},
};