Bug 804857 - Allocate memory in the compression thread and have its clients check for error. r=njn
This commit is contained in:
@@ -246,6 +246,9 @@ frontend::CompileScript(JSContext *cx, HandleObject scopeChain, StackFrame *call
|
||||
|
||||
bce.tellDebuggerAboutCompiledScript(cx);
|
||||
|
||||
if (!sct.complete())
|
||||
return NULL;
|
||||
|
||||
return script;
|
||||
}
|
||||
|
||||
@@ -352,5 +355,8 @@ frontend::CompileFunctionBody(JSContext *cx, HandleFunction fun, CompileOptions
|
||||
if (!EmitFunctionScript(cx, &funbce, pn))
|
||||
return false;
|
||||
|
||||
if (!sct.complete())
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user