Bug 528126 - Ensure the GC can see the new object. r=brendan

This commit is contained in:
Blake Kaplan 2009-11-18 15:54:27 +01:00
parent f3b7e0182c
commit e4ee1ce1bf

View File

@ -1409,6 +1409,9 @@ obj_eval(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
goto out;
}
scopeobj = withObject;
JS_ASSERT(argc >= 2);
argv[1] = OBJECT_TO_JSVAL(scopeobj);
}
/* We're pretending that we're in global code. */