diff --git a/js/src/jsfun.c b/js/src/jsfun.c index 1c4aacf0272..047231f7e23 100644 --- a/js/src/jsfun.c +++ b/js/src/jsfun.c @@ -859,23 +859,21 @@ call_resolve(JSContext *cx, JSObject *obj, jsval id, uintN flags, return JS_TRUE; } - if (!(flags & JSRESOLVE_ASSIGNING)) { - /* - * Resolve arguments so that we never store a particular Call object's - * arguments object reference in a Call prototype's |arguments| slot. - */ - atom = cx->runtime->atomState.argumentsAtom; - if (id == ATOM_KEY(atom)) { - if (!js_DefineNativeProperty(cx, obj, - ATOM_TO_JSID(atom), JSVAL_VOID, - NULL, NULL, JSPROP_PERMANENT, - SPROP_HAS_SHORTID, CALL_ARGUMENTS, - NULL)) { - return JS_FALSE; - } - *objp = obj; - return JS_TRUE; + /* + * Resolve arguments so that we never store a particular Call object's + * arguments object reference in a Call prototype's |arguments| slot. + */ + atom = cx->runtime->atomState.argumentsAtom; + if (id == ATOM_KEY(atom)) { + if (!js_DefineNativeProperty(cx, obj, + ATOM_TO_JSID(atom), JSVAL_VOID, + NULL, NULL, JSPROP_PERMANENT, + SPROP_HAS_SHORTID, CALL_ARGUMENTS, + NULL)) { + return JS_FALSE; } + *objp = obj; + return JS_TRUE; } return JS_TRUE; }