Skip to main content

new_int32

Function new_int32 

Source
pub const fn new_int32(value: i32) -> JsValue
Expand description

JS_NewInt32: an integer, which is the bare payload with no tag bits at all.

Only 32 bits fit, which is why JS_NewInt64 in the reference promotes anything wider to a double.