node/test/addons-napi/2_function_arguments
Taylor Woll 50cb48b55c n-api: refactor napi_addon_register_func
As per discussion in abi-stable-node:
https://github.com/nodejs/abi-stable-node/issues/256,
take a refactor to napi_addon_register_func such that
the result from the register function is assigned to
the module exports property. By making this change,
native module can be agnostic about which type of
module the environment supports.

Backport-PR-URL: https://github.com/nodejs/node/pull/19447
PR-URL: https://github.com/nodejs/node/pull/15088
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Hitesh Kanwathirtha <digitalinfinity@gmail.com>
2018-04-16 17:46:06 -04:00
..
binding.c n-api: refactor napi_addon_register_func 2018-04-16 17:46:06 -04:00
binding.gyp n-api: add support for abi stable module API 2018-04-16 17:45:48 -04:00
test.js n-api: add support for abi stable module API 2018-04-16 17:45:48 -04:00