Index: bootstrap.js.tmpl |
=================================================================== |
--- a/bootstrap.js.tmpl |
+++ b/bootstrap.js.tmpl |
@@ -21,7 +21,7 @@ |
{%- if hasChromeRequires %} |
Services.obs.addObserver(RequireObserver, "{{metadata.get('general', 'basename')}}-require", true); |
- onShutdown.add(function() Services.obs.removeObserver(RequireObserver, "{{metadata.get('general', 'basename')}}-require")); |
+ onShutdown.add(() => Services.obs.removeObserver(RequireObserver, "{{metadata.get('general', 'basename')}}-require")); |
{%- set hasShutdownHandlers = True %} |
{%- endif %} |
@@ -169,7 +169,7 @@ |
} |
return scopes[module].exports; |
} |
-require.scopes = {__proto__: null}; |
+require.scopes = Object.create(null); |
{%- if hasChromeRequires %} |
Cu.import("resource://gre/modules/XPCOMUtils.jsm"); |