pub unsafe fn release(value: JsValue)Expand description
Release the reference a returned JSValue held, after taking what we need from it.
The C API’s convention is that every function returning a JSValue returns a new reference:
the caller owns it and must free it. When the caller is us — the trampoline around a C
function, or a Rust-side test — the box has to be released once the engine value has been
cloned out, or the payload leaks for the life of the process.
§Safety
value must be an owned JSValue from this crate that is not used afterwards.