mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
Bug 1593329 - Make oomTest delazify its thunk first so that allocations doing that don't mask those in the thunk itself r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D52026 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
c40c0bf0af
commit
6ee34c1680
@ -2166,6 +2166,12 @@ bool RunIterativeFailureTest(JSContext* cx,
|
||||
JS_SetGCZeal(cx, 0, JS_DEFAULT_ZEAL_FREQ);
|
||||
# endif
|
||||
|
||||
// Delazify the function here if necessary so we don't end up testing that.
|
||||
if (params.testFunction->isInterpreted() &&
|
||||
!JSFunction::getOrCreateScript(cx, params.testFunction)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
size_t compartmentCount = CountCompartments(cx);
|
||||
|
||||
RootedValue exception(cx);
|
||||
|
@ -21,4 +21,4 @@ dbg.onNewScript = script => {};
|
||||
// the correct condition).
|
||||
oomTest(() => {
|
||||
g.eval("(function() {})");
|
||||
});
|
||||
}, {expectExceptionOnFailure: false});
|
||||
|
Loading…
Reference in New Issue
Block a user