Bug 804857 - Allocate memory in the compression thread and have its clients check for error. r=njn

This commit is contained in:
Benjamin Peterson
2012-10-24 16:15:48 -07:00
parent 2898a1fde3
commit 86a0083ff3
3 changed files with 87 additions and 54 deletions

View File

@@ -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;
}