Function mozjs_sys::jsapi::JS_GetPrototypeIfOrdinary
source · pub unsafe extern "C" fn JS_GetPrototypeIfOrdinary(
cx: *mut JSContext,
obj: HandleObject,
isOrdinary: *mut bool,
result: MutableHandleObject,
) -> bool
Expand description
If |obj| (underneath any functionally-transparent wrapper proxies) has as its [[GetPrototypeOf]] trap the ordinary [[GetPrototypeOf]] behavior defined for ordinary objects, set |*isOrdinary = true| and store |obj|’s prototype in |result|. Otherwise set |*isOrdinary = false|. In case of error, both outparams have unspecified value.