Use handles in API object hooks where possible, bug 750733. r=billm
This commit is contained in:
@@ -308,7 +308,7 @@ JS_NondeterministicGetWeakMapKeys(JSContext *cx, JSObject *obj, JSObject **ret)
|
||||
*ret = NULL;
|
||||
return true;
|
||||
}
|
||||
JSObject *arr = NewDenseEmptyArray(cx);
|
||||
RootedVarObject arr(cx, NewDenseEmptyArray(cx));
|
||||
if (!arr)
|
||||
return false;
|
||||
ObjectValueMap *map = GetObjectMap(obj);
|
||||
|
||||
Reference in New Issue
Block a user