зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 41ded240a012 (bug 1342012) for wrong bug number in commit message
This commit is contained in:
Родитель
fe31bd1a07
Коммит
7901f411b6
|
@ -299,17 +299,16 @@ function ModuleInstantiate()
|
|||
} catch (error) {
|
||||
for (let i = 0; i < stack.length; i++) {
|
||||
let m = stack[i];
|
||||
if (m.status === MODULE_STATUS_INSTANTIATING) {
|
||||
HandleModuleInstantiationFailure(m);
|
||||
}
|
||||
assert(m.status === MODULE_STATUS_INSTANTIATING,
|
||||
"Expected instantiating status during failed instantiation");
|
||||
HandleModuleInstantiationFailure(m);
|
||||
}
|
||||
|
||||
// Handle OOM when appending to the stack or over-recursion errors.
|
||||
if (stack.length === 0 && module.status === MODULE_STATUS_INSTANTIATING) {
|
||||
if (stack.length === 0)
|
||||
HandleModuleInstantiationFailure(module);
|
||||
}
|
||||
|
||||
assert(module.status !== MODULE_STATUS_INSTANTIATING,
|
||||
assert(module.status === MODULE_STATUS_UNINSTANTIATED,
|
||||
"Expected uninstantiated status after failed instantiation");
|
||||
|
||||
throw error;
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
// |jit-test| skip-if: !('oomTest' in this)
|
||||
|
||||
oomTest(() => import("module1.js"));
|
||||
oomTest(() => import("cyclicImport1.js"));
|
Загрузка…
Ссылка в новой задаче