js_SetPropertyHelper does not null *entryp for read-only properties (489171, r=gal,brendan).

This commit is contained in:
igor
2009-04-20 17:00:59 -07:00
parent e50b6bf757
commit 39d528e26c
8 changed files with 158 additions and 147 deletions

View File

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