Join lambdas assigned or initialized as methods to the compiler-created function object if we can, with a read barrier to clone on method value extractions other than call expressions (471214, r=jorendorff).

This commit is contained in:
Brendan Eich
2009-09-03 14:41:19 -07:00
parent 9326c8d283
commit b2d22b3b20
24 changed files with 913 additions and 384 deletions

View File

@@ -374,7 +374,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), false, vp))
if (!js_GetMethod(cx, obj, ATOM_TO_JSID(atom), JSGET_NO_METHOD_BARRIER, vp))
goto bad;
if (JSVAL_IS_VOID(*vp)) {
default_iter: