mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1142734: Allow unloading the loader sandbox module. r=jsantell
const declarations are no longer accessible from outside the script that makes them so in order for bootstrap.js to be able to access the loaderSandbox declaration we must use var.
This commit is contained in:
parent
ca870dcc6e
commit
bc2bb508cc
@ -26,7 +26,7 @@ const xulappURI = module.uri.replace("loader/cuddlefish.js",
|
||||
// We need to keep a reference to the sandbox in order to unload it in
|
||||
// bootstrap.js
|
||||
|
||||
const loaderSandbox = loadSandbox(loaderURI);
|
||||
var loaderSandbox = loadSandbox(loaderURI);
|
||||
const loaderModule = loaderSandbox.exports;
|
||||
|
||||
const { incompatibility } = Cu.import(xulappURI, {}).XulApp;
|
||||
|
Loading…
Reference in New Issue
Block a user