Skip to main content

Module value_helpers

Module value_helpers 

Source
Expand description

The two directions of the bridge, as free functions.

crate::convert owns the actual conversions; this module exists so that the exported API files can write jsvalue_of(value) and value_of(js) without each of them importing the same pair of names. The names read the way the C API does — a JSValue is what goes over the boundary, a Value is what the engine holds.

Functions§

jsvalue_of
Box an engine value as a JSValue the caller owns.
value_of⚠
The engine value behind a JSValue, when it is one this layer can decode.