Skip to main content

JS_UpdateStackTop

Function JS_UpdateStackTop 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_UpdateStackTop(_rt: *mut JsRuntime)
Expand description

JS_UpdateStackTop: tell the engine where this thread’s stack starts.

The engine measures depth in frames rather than bytes, so there is no stack top to update. The reference needs this after a thread switch; a C host that moves a runtime between threads still gets the frame-based check, which is thread-independent.

§Safety

The argument is ignored.