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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user