From 78286984da50ed7f0ed8914b587da62c552277ce Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Tue, 5 Sep 2017 23:53:06 +0300 Subject: test,doc: make module name match gyp target name Currently the nm_modname does not match the file name of the resulting module. In fact, the nm_modname is pretty arbitrary. This seeks to introduce some consistency into the nm_modname property by having the name of the module appear in exactly one place: the "target_name" property of the gyp target that builds the module. PR-URL: https://github.com/nodejs/node/pull/15209 Reviewed-By: Refael Ackermann Reviewed-By: Colin Ihrig --- test/addons-napi/1_hello_world/binding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/addons-napi/1_hello_world') diff --git a/test/addons-napi/1_hello_world/binding.c b/test/addons-napi/1_hello_world/binding.c index 57bac37fa0b..785484d1676 100644 --- a/test/addons-napi/1_hello_world/binding.c +++ b/test/addons-napi/1_hello_world/binding.c @@ -15,4 +15,4 @@ void Init(napi_env env, napi_value exports, napi_value module, void* priv) { NAPI_CALL_RETURN_VOID(env, napi_define_properties(env, exports, 1, &desc)); } -NAPI_MODULE(addon, Init) +NAPI_MODULE(NODE_GYP_MODULE_NAME, Init) -- cgit v1.2.3