Skip to content
Snippets Groups Projects
Commit 1b8ec556 authored by deuce's avatar deuce
Browse files

Apparently, we need to explicitly set the parent for the node_list array.

parent f2327fe6
No related branches found
No related tags found
No related merge requests found
......@@ -1764,6 +1764,9 @@ static JSBool js_system_resolve(JSContext *cx, JSObject *obj, jsval id)
if((newobj=JS_NewArrayObject(cx, 0, NULL))==NULL)
return(JS_FALSE);
if(!JS_SetParent(cx, newobj, obj))
return(JS_FALSE);
if(!JS_DefineProperty(cx, obj, "node_list", OBJECT_TO_JSVAL(newobj)
, NULL, NULL, JSPROP_ENUMERATE))
return(JS_FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment