Skip to content

Commit 7f5649e

Browse files
authored
Updates for N-API changes (#18)
- Update typed-array type enum names - Update napi_static enum name - Update callback wrapper functions to return napi_value instead of calling napi_set_return_value - Use napi_get_cb_info instead of the separate napi_get_cb_* APIs - Use templates (and typedefs) instead of unions for CallbackData structs, for more efficient memory use and better type safety - Define a macro for the repeated pattern of rethrowing a N-API error as a JavaScript exception - Define a macro for cross-plat noexecpt - Update some parameter types to size_t and fix string creation APIs - Add namespace qualifier in some places to disambiguate
1 parent d09ae4a commit 7f5649e

File tree

2 files changed

+220
-258
lines changed

2 files changed

+220
-258
lines changed

0 commit comments

Comments
 (0)