mirror of
https://github.com/nodejs/node.git
synced 2025-05-09 16:10:50 +00:00

Update tests to use module name macro PR-URL: https://github.com/nodejs/node/pull/16185 Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
12 lines
239 B
C
12 lines
239 B
C
#include <node_api.h>
|
|
#include "../common.h"
|
|
|
|
napi_value Init(napi_env env, napi_value exports) {
|
|
napi_value result;
|
|
NAPI_CALL(env,
|
|
napi_create_uint32(env, 42, &result));
|
|
return result;
|
|
}
|
|
|
|
NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
|