Val
A handle to a JS value, valid only within the current call.
Val is extern struct so a []const Val is castable to [*]const napi_value for direct N-API calls.
Conversion
Type checks
Property access
Array access
String access
BigInt access
The auto-conversion path for i54..i64 and u54..u64 throws a RangeError when the source BigInt does not fit. To inspect the lossless flag yourself, take a napi.Val and use these methods: