Backed out changeset 41ded240a012 (bug 1342012) for wrong bug number in commit message

This commit is contained in:
Jon Coppeard 2018-10-22 11:38:13 +01:00
Родитель fe31bd1a07
Коммит 7901f411b6
2 изменённых файлов: 5 добавлений и 10 удалений

Просмотреть файл

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