Skip to main content

JS_IsLiveObject

Function JS_IsLiveObject 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_IsLiveObject( _rt: *mut JsRuntime, obj: JsValue, ) -> Bool
Expand description

JS_IsLiveObject: whether obj is still reachable.

Every JSValue a C caller holds is a box with a reference count, so a value it can pass is by construction live. The question only makes sense during a collection, which this engine does not expose.

ยงSafety

The arguments are ignored.