Bug 758509 (part 5) - Initialize JSScript::compileAndGo in Create(). r=luke.
This commit is contained in:
@@ -113,7 +113,8 @@ frontend::CompileScript(JSContext *cx, JSObject *scopeChain, StackFrame *callerF
|
||||
return NULL;
|
||||
|
||||
Rooted<JSScript*> script(cx);
|
||||
script = JSScript::Create(cx, principals, originPrincipals, noScriptRval, version);
|
||||
script = JSScript::Create(cx, principals, originPrincipals, compileAndGo, noScriptRval,
|
||||
version);
|
||||
if (!script)
|
||||
return NULL;
|
||||
|
||||
@@ -278,8 +279,8 @@ frontend::CompileFunctionBody(JSContext *cx, JSFunction *fun,
|
||||
return false;
|
||||
|
||||
Rooted<JSScript*> script(cx);
|
||||
script = JSScript::Create(cx, principals, originPrincipals, /* noScriptRval = */ false,
|
||||
version);
|
||||
script = JSScript::Create(cx, principals, originPrincipals, /* compileAndGo = */ false,
|
||||
/* noScriptRval = */ false, version);
|
||||
if (!script)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user