Function js::jsapi::JS_CopyPropertiesFrom
[−]
[src]
pub unsafe extern "C" fn JS_CopyPropertiesFrom(
cx: *mut JSContext,
target: HandleObject,
obj: HandleObject
) -> bool
Copies all own properties from |obj| to |target|. |obj| must be a "native" object (that is to say, normal-ish - not an Array or a Proxy).
This function immediately enters a compartment, and does not impose any restrictions on the compartment of |cx|.