Backed out changeset ae8d72538dee (bug 897484) for b2g bustage
This commit is contained in:
@@ -78,7 +78,7 @@ Environment(JSObject* global)
|
||||
AutoSafeJSContext cx;
|
||||
JSAutoCompartment ac(cx, global);
|
||||
Rooted<Value> v(cx);
|
||||
if (!JS_GetProperty(cx, global, "__XPCShellEnvironment", &v) ||
|
||||
if (!JS_GetProperty(cx, global, "__XPCShellEnvironment", v.address()) ||
|
||||
!v.get().isDouble())
|
||||
{
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user