node/test/js-native-api/test_bigint
Gabriel Schulhof 0cc2a54a53 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 <gabriel.schulhof@intel.com>
PR-URL: https://github.com/nodejs/node/pull/34554
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2020-07-31 13:45:25 -07:00
..
binding.gyp test: partition N-API tests 2018-12-04 13:58:17 -08:00
test_bigint.c n-api: simplify bigint-from-word creation 2020-07-31 13:45:25 -07:00
test.js n-api: simplify bigint-from-word creation 2020-07-31 13:45:25 -07:00