Skip to content

n-api: simplify bigint-from-word creation

Macro CHECK_MAYBE_EMPTY_WITH_PREAMBLE() does the work of checking the TryCatch and returning napi_pending_exception so this change reuses it for napi_create_bigint_words().

Signed-off-by: Gabriel Schulhof @gabrielschulhof

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

Merge request reports

Loading