pub unsafe extern "C" fn JS_GetPrototypeIfOrdinary(
cx: *mut JSContext,
obj: Handle<*mut JSObject>,
isOrdinary: *mut bool,
result: MutableHandle<*mut JSObject>,
) -> 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.