n-api: factor out calling pattern
Factor out how we handle a napi_status
-valued return internally.
Signed-off-by: Gabriel Schulhof gabriel.schulhof@intel.com
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines