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:
Dave Townsend 2016-02-08 10:55:56 -08:00
parent ca870dcc6e
commit bc2bb508cc

View File

@ -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;