Bug 899245 - Rename JS_GetGlobalForScopeChain to JS::CurrentGlobalOrNull. r=luke

This was done with perl/grep.
This commit is contained in:
Bobby Holley
2013-07-29 16:45:27 -07:00
parent 0d55dae85a
commit 0df174a07e
50 changed files with 97 additions and 93 deletions

View File

@@ -177,7 +177,7 @@ Load(JSContext *cx,
JS::CompileOptions options(cx);
options.setUTF8(true)
.setFileAndLine(filename.ptr(), 1)
.setPrincipals(Environment(JS_GetGlobalForScopeChain(cx))->GetPrincipal());
.setPrincipals(Environment(JS::CurrentGlobalOrNull(cx))->GetPrincipal());
JS::RootedObject rootedObj(cx, obj);
JSScript *script = JS::Compile(cx, rootedObj, options, file);
fclose(file);
@@ -217,7 +217,7 @@ Quit(JSContext *cx,
unsigned argc,
JS::Value *vp)
{
XPCShellEnvironment* env = Environment(JS_GetGlobalForScopeChain(cx));
XPCShellEnvironment* env = Environment(JS::CurrentGlobalOrNull(cx));
env->SetIsQuitting();
return JS_FALSE;