mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1786494 - Part 10: Use ErrorContext::recoverFromOutOfMemory in EmitterScope. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D157450
This commit is contained in:
parent
5a476becfa
commit
d7e5d3da7e
@ -195,7 +195,7 @@ NameLocation EmitterScope::searchAndCache(BytecodeEmitter* bce,
|
||||
// It is always correct to not cache the location. Ignore OOMs to make
|
||||
// lookups infallible.
|
||||
if (!putNameInCache(bce, name, *loc)) {
|
||||
bce->cx->recoverFromOutOfMemory();
|
||||
bce->ec->recoverFromOutOfMemory();
|
||||
}
|
||||
|
||||
return *loc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user