Skip to content

n-api: add napi_get_value_int64() unsafe version

Adds napi_get_value_int64_unsafe() which skips the correction whereby non-finite values are rendered as zero, exposing instead the engine-specific behavior.

This tradeoff favors performance-intensive applications where guarantees of finiteness can be made a priori.

This modification is further motivated by the fact that there is currently no typed array support for int64_t.

Fixes: https://github.com/nodejs/abi-stable-node/issues/327

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading