pub fn to_value<'j, C, V>(cx: &mut C, value: &V) -> Result<Handle<'j, JsValue>>
Expand description
Converts a value of type V
to a JsValue
§Errors
NumberCastError
trying to serialize au64
can fail if it overflows in a cast tof64
StringTooLong
if the string exceeds v8’s max string size