From b7de877e6a5ef7df614a906ea53914e196bd0477 Mon Sep 17 00:00:00 2001 From: "igor@mir2.org" Date: Thu, 29 Mar 2007 13:39:46 -0700 Subject: [PATCH] Bug 374160: Uniform applications of GetXMLObject. r=brendan --- js/src/jsxml.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/src/jsxml.c b/js/src/jsxml.c index c303fcfe7174..90c5b9b5b86b 100644 --- a/js/src/jsxml.c +++ b/js/src/jsxml.c @@ -4367,7 +4367,9 @@ PutProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) if (parent) { /* 2(e)(i). */ - parentobj = parent->object; + parentobj = js_GetXMLObject(cx, parent); + if (!parentobj) + goto bad; ok = PutProperty(cx, parentobj, id, vp); if (!ok) goto out;