Bug 399090: proper check for duplicated parameter names in xdr decoder. r=brendan,mrbkap a=brendan aM9=beltzner

This commit is contained in:
igor@mir2.org 2007-10-24 14:50:22 -07:00
parent a69e97ef2b
commit 7432749720

View File

@ -1403,7 +1403,8 @@ fun_xdrObject(JSXDRState *xdr, JSObject **objp)
/* Flag duplicate argument if atom is bound in fun->object. */
dupflag = SCOPE_GET_PROPERTY(OBJ_SCOPE(fun->object),
ATOM_TO_JSID(propAtom))
JSID_HIDE_NAME(
ATOM_TO_JSID(propAtom)))
? SPROP_IS_DUPLICATE
: 0;