Backed out changeset 28ef4bdff455 (bug 848395)
This commit is contained in:
@@ -300,7 +300,7 @@ Load(JSContext *cx,
|
||||
options.setUTF8(true)
|
||||
.setFileAndLine(filename.ptr(), 1)
|
||||
.setPrincipals(Environment(cx)->GetPrincipal());
|
||||
JS::RootedObject rootedObj(cx, obj);
|
||||
js::RootedObject rootedObj(cx, obj);
|
||||
JSScript *script = JS::Compile(cx, rootedObj, options, file);
|
||||
fclose(file);
|
||||
if (!script)
|
||||
@@ -568,7 +568,7 @@ ProcessFile(JSContext *cx,
|
||||
options.setUTF8(true)
|
||||
.setFileAndLine(filename, 1)
|
||||
.setPrincipals(env->GetPrincipal());
|
||||
JS::RootedObject rootedObj(cx, obj);
|
||||
js::RootedObject rootedObj(cx, obj);
|
||||
JSScript* script = JS::Compile(cx, rootedObj, options, file);
|
||||
if (script && !env->ShouldCompileOnly())
|
||||
(void)JS_ExecuteScript(cx, obj, script, &result);
|
||||
|
||||
Reference in New Issue
Block a user