Fix xml_hasOwnProperty to instance-check (355478, r=igor).

git-svn-id: svn://10.0.0.236/trunk@213178 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org
2006-10-05 20:35:29 +00:00
parent a4f420fa98
commit 7d531e2b9b

View File

@@ -5969,6 +5969,9 @@ xml_hasOwnProperty(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
JSObject *pobj;
JSProperty *prop;
if (!JS_InstanceOf(cx, obj, &js_XMLClass, argv))
return JS_FALSE;
name = argv[0];
if (!HasProperty(cx, obj, name, &pobj, &prop))
return JS_FALSE;