Function js::jsapi::INTERNED_STRING_TO_JSID
[−]
[src]
pub unsafe extern "C" fn INTERNED_STRING_TO_JSID(
cx: *mut JSContext,
str: *mut JSString
) -> jsid
Only JSStrings that have been interned via the JSAPI can be turned into jsids by API clients.
N.B. if a jsid is backed by a string which has not been interned, that string must be appropriately rooted to avoid being collected by the GC.