Make named arrays not look up names for XPCNativeWrapper. Bug 310069,

r=mrbkap, sr=jst
This commit is contained in:
bzbarsky%mit.edu 2005-09-29 22:08:09 +00:00
parent 952e8e8f45
commit 746d3904e7

View File

@ -6722,7 +6722,7 @@ nsNamedArraySH::GetProperty(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JSObject *obj, jsval id, jsval *vp,
PRBool *_retval)
{
if (JSVAL_IS_STRING(id)) {
if (JSVAL_IS_STRING(id) && !ObjectIsNativeWrapper(cx, obj)) {
nsCOMPtr<nsISupports> item;
nsresult rv = GetNamedItem(wrapper->Native(), nsDependentJSString(id),
getter_AddRefs(item));