Bug 952944 - Refactor JSOP_ARRAYPUSH. r=jorendorff

This commit is contained in:
Jan de Mooij
2014-01-18 13:55:56 +01:00
parent dcc45209ed
commit 93d8dc6f21
8 changed files with 26 additions and 33 deletions

View File

@@ -369,7 +369,7 @@ JS_NondeterministicGetWeakMapKeys(JSContext *cx, JSObject *objArg, JSObject **re
RootedObject key(cx, r.front().key());
if (!cx->compartment()->wrap(cx, &key))
return false;
if (!js_NewbornArrayPush(cx, arr, ObjectValue(*key)))
if (!NewbornArrayPush(cx, arr, ObjectValue(*key)))
return false;
}
}