n-api: make thread-safe-function calls properly
Use NapiCallIntoModuleThrow()
to execute the call into JavaScript and
the finalizer for consistency with the rest of the calls into the N-API
addon.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines