js_SetPropertyHelper does not null *entryp for read-only properties (489171, r=gal,brendan).
This commit is contained in:
@@ -375,7 +375,7 @@ js_ValueToIterator(JSContext *cx, uintN flags, jsval *vp)
|
||||
*vp = OBJECT_TO_JSVAL(iterobj);
|
||||
} else {
|
||||
atom = cx->runtime->atomState.iteratorAtom;
|
||||
if (!js_GetMethod(cx, obj, ATOM_TO_JSID(atom), vp, NULL))
|
||||
if (!js_GetMethod(cx, obj, ATOM_TO_JSID(atom), false, vp))
|
||||
goto bad;
|
||||
if (JSVAL_IS_VOID(*vp)) {
|
||||
default_iter:
|
||||
|
||||
Reference in New Issue
Block a user