Bug 777219 - Prepare SpiderMonkey for a fully rooted API; r=bhackett

This commit is contained in:
Steve Fink
2012-07-23 13:37:31 -07:00
parent d4a3b3944e
commit 56b9c45f6e
90 changed files with 1400 additions and 1270 deletions

View File

@@ -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 {