Skip to main content

JS_WrapId

Function JS_WrapId 

Source
pub unsafe extern "C" fn JS_WrapId(
    cx: *mut JSContext,
    id: MutableHandle<PropertyKey>,
) -> bool
Expand description

Wrap a jsid after entering a new compartment. Different zones separately mark the ids in a runtime, and this must be used any time an id is obtained from one compartment and then used in another compartment, unless the two compartments are guaranteed to be in the same zone.