mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 06:22:20 +00:00
actually define the function properties of a script when decoding
This commit is contained in:
parent
33a0264376
commit
8f257dc22d
@ -1074,6 +1074,11 @@ fun_xdrObject(JSXDRState *xdr, JSObject **objp)
|
||||
return JS_FALSE;
|
||||
}
|
||||
*objp = fun->object;
|
||||
if (!OBJ_DEFINE_PROPERTY(xdr->cx, xdr->cx->globalObject,
|
||||
(jsid)fun->atom, OBJECT_TO_JSVAL(*objp),
|
||||
NULL, NULL, JSPROP_ENUMERATE,
|
||||
(JSProperty **)&sprop))
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
return JS_TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user