mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 15:50:28 +01:00
6d1170f06c
Co-authored-by: Mark Stacey <markjstacey@gmail.com> Co-authored-by: ricky <ricky.miller@gmail.com> Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com> Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com> Co-authored-by: legobt <6wbvkn0j@anonaddy.me> Co-authored-by: Pedro Figueiredo <pedro.figueiredo@consensys.net>
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
|
|
);
|