Bug 1786117: Use ErrorContext-variant of ReportOutOfMemory in Stencil XDR. r=arai,bthrall
Differential Revision: https://phabricator.services.mozilla.com/D155433
This commit is contained in:
@@ -5133,7 +5133,8 @@ static bool InstantiateModuleStencilXDR(JSContext* cx, uint32_t argc,
|
||||
/* Deserialize the stencil from XDR. */
|
||||
JS::TranscodeRange xdrRange(xdrObj->buffer(), xdrObj->bufferLength());
|
||||
bool succeeded = false;
|
||||
if (!stencil.deserializeStencils(cx, input.get(), xdrRange, &succeeded)) {
|
||||
if (!stencil.deserializeStencils(cx, &ec, input.get(), xdrRange,
|
||||
&succeeded)) {
|
||||
return false;
|
||||
}
|
||||
if (!succeeded) {
|
||||
|
||||
Reference in New Issue
Block a user