mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1172545 - Recover from OOM if Ion compilation is skipped due to not being able to allocate a 'this' object, r=jandem.
This commit is contained in:
parent
0ab322a7fe
commit
0c57a2bf4a
@ -2429,8 +2429,10 @@ jit::CanEnter(JSContext* cx, RunState& state)
|
||||
return Method_CantCompile;
|
||||
}
|
||||
|
||||
if (!state.maybeCreateThisForConstructor(cx))
|
||||
if (!state.maybeCreateThisForConstructor(cx)) {
|
||||
cx->recoverFromOutOfMemory();
|
||||
return Method_Skipped;
|
||||
}
|
||||
}
|
||||
|
||||
// If --ion-eager is used, compile with Baseline first, so that we
|
||||
|
Loading…
Reference in New Issue
Block a user