Function mozjs::jsapi::PropertySpecNameToPermanentId
source · pub unsafe extern "C" fn PropertySpecNameToPermanentId(
cx: *mut JSContext,
name: JSPropertySpec_Name,
idp: *mut PropertyKey,
) -> bool
Expand description
Create a jsid that does not need to be marked for GC.
‘name’ is a JSPropertySpec::name or JSFunctionSpec::name value. The resulting jsid, on success, is either an interned string or a well-known symbol; either way it is immune to GC so there is no need to visit *idp during GC marking.