n-api: add version to wasm registration
This changes the wasm entrypoint from _napi_register
to napi_register_wasm_v##NAPI_API_VERSION
.
cc @nodejs/n-api
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines