Use handles in API object hooks where possible, bug 750733. r=billm

This commit is contained in:
Brian Hackett
2012-05-19 09:48:09 -07:00
parent 694730ebfa
commit b7d2500332
102 changed files with 1681 additions and 1656 deletions

View File

@@ -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);