Bug 777219 - Prepare SpiderMonkey for a fully rooted API; r=bhackett
This commit is contained in:
@@ -205,7 +205,7 @@ struct SortComparatorIds
|
||||
#endif /* JS_MORE_DETERMINISTIC */
|
||||
|
||||
static bool
|
||||
Snapshot(JSContext *cx, JSObject *obj_, unsigned flags, AutoIdVector *props)
|
||||
Snapshot(JSContext *cx, RawObject obj_, unsigned flags, AutoIdVector *props)
|
||||
{
|
||||
IdSet ht(cx);
|
||||
if (!ht.init(32))
|
||||
@@ -970,7 +970,7 @@ js::ValueToIterator(JSContext *cx, unsigned flags, MutableHandleValue vp)
|
||||
* standard.
|
||||
*/
|
||||
if (flags & JSITER_ENUMERATE) {
|
||||
if (!js_ValueToObjectOrNull(cx, vp, obj.address()))
|
||||
if (!js_ValueToObjectOrNull(cx, vp, &obj))
|
||||
return false;
|
||||
/* fall through */
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user