Bug 899245 - The preceding typo fix was wrong; the original patch should have replaced JS_GetGlobalForScopeChain with JS::CurrentGlobalOrNull (r=red, CLOSED TREE)

This commit is contained in:
Luke Wagner
2013-07-29 19:51:16 -05:00
parent 7b22fd77ad
commit 6d6849b879

View File

@@ -562,7 +562,7 @@ JavaScriptParent::unwrap(JSContext *cx, ObjectId objId)
bool callable = !!(objId & OBJECT_IS_CALLABLE);
RootedObject global(cx, js::DefaultObjectForContextOrNull(cx));
RootedObject global(cx, JS::CurrentGlobalOrNull(cx));
RootedValue v(cx, UndefinedValue());
JSObject *obj = NewProxyObject(cx,