n-api: refactoring napi_create_function testing
PR-URL: https://github.com/nodejs/node/pull/26998
This is a refactoring of https://github.com/nodejs/node/pull/26998 following https://github.com/nodejs/node/pull/28505.
The functions add_last_status()
and add_returned_status()
are now
reused, see also https://github.com/nodejs/node/pull/28848.
PR-URL: https://github.com/nodejs/node/pull/26998 PR-URL: https://github.com/nodejs/node/pull/28505 PR-URL: https://github.com/nodejs/node/pull/28848
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines