n-api: clean up thread-safe function
- Move class
TsFn
to name spacev8impl
- Remove
NAPI_EXTERN
from API declarations, because it's only needed in the header file.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines