14 lines
565 B
Diff
14 lines
565 B
Diff
diff --git a/lib/linter/linter.js b/lib/linter/linter.js
|
|
index 29d78da3969e2a3560d056af5683a08083562984..a6ae07b7142a353fcd8d58b55a7e68b8f81b2846 100644
|
|
--- a/lib/linter/linter.js
|
|
+++ b/lib/linter/linter.js
|
|
@@ -704,7 +704,7 @@ function createLanguageOptions({ globals: configuredGlobals, parser, parserOptio
|
|
*/
|
|
function resolveGlobals(providedGlobals, enabledEnvironments) {
|
|
return Object.assign(
|
|
- {},
|
|
+ Object.create(null),
|
|
...enabledEnvironments.filter(env => env.globals).map(env => env.globals),
|
|
providedGlobals
|
|
);
|