mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1182428 - Fix bustage from returning nullptr in bool function r=me on a CLOSED TREE
This commit is contained in:
parent
938be66def
commit
745619ad5c
@ -211,7 +211,7 @@ BytecodeCompiler::maybeCompressSource()
|
||||
} else if (!scriptSource->setSourceCopy(cx, sourceBuffer, sourceArgumentsNotIncluded,
|
||||
sourceCompressor))
|
||||
{
|
||||
return nullptr;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -342,7 +342,7 @@ BytecodeCompiler::handleStatementParseFailure(HandleObject scopeChain, HandleScr
|
||||
// Destroying the parse context will destroy its free
|
||||
// variables, so check if any deoptimization is needed.
|
||||
if (!maybeCheckEvalFreeVariables(evalCaller, scopeChain, parseContext.ref()))
|
||||
return nullptr;
|
||||
return false;
|
||||
|
||||
parseContext.reset();
|
||||
if (!createParseContext(parseContext, globalsc, staticLevel, script->bindings.numBlockScoped()))
|
||||
|
Loading…
Reference in New Issue
Block a user