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

Also properly parent fido_addr_list

parent 1b8ec556
No related branches found
No related tags found
No related merge requests found
...@@ -1732,6 +1732,9 @@ static JSBool js_system_resolve(JSContext *cx, JSObject *obj, jsval id) ...@@ -1732,6 +1732,9 @@ static JSBool js_system_resolve(JSContext *cx, JSObject *obj, jsval id)
if((newobj=JS_NewArrayObject(cx, 0, NULL))==NULL) if((newobj=JS_NewArrayObject(cx, 0, NULL))==NULL)
return(JS_FALSE); return(JS_FALSE);
if(!JS_SetParent(cx, newobj, obj))
return(JS_FALSE);
if(!JS_DefineProperty(cx, obj, "fido_addr_list", OBJECT_TO_JSVAL(newobj) if(!JS_DefineProperty(cx, obj, "fido_addr_list", OBJECT_TO_JSVAL(newobj)
, NULL, NULL, JSPROP_ENUMERATE)) , NULL, NULL, JSPROP_ENUMERATE))
return(JS_FALSE); 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