node/test/js-native-api/test_constructor
Octavian Soldea e6b3bfe111
n-api: refactor a previous commit
This is a refactoring of https://github.com/nodejs/node/issues/27628
following https://github.com/nodejs/node/pull/28505.

This change factors out functions `add_last_status()` and
`add_returned_status()` so they may be reused in the tests for passing
information about the last error status and/or a returned `napi_status`
to JavaScript.

PR-URL: https://github.com/nodejs/node/pull/28848
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
2019-08-02 22:23:57 +02:00
..
binding.gyp n-api: refactor a previous commit 2019-08-02 22:23:57 +02:00
test_constructor.c n-api: refactor a previous commit 2019-08-02 22:23:57 +02:00
test.js test: propagate napi_status to JS 2019-07-20 11:29:58 +02:00
test2.js test: partition N-API tests 2018-12-04 13:58:17 -08:00