summaryrefslogtreecommitdiff
path: root/test/addons-napi
diff options
context:
space:
mode:
authorGabriel Schulhof <gabriel.schulhof@intel.com>2017-10-11 16:44:36 +0300
committerMichaƫl Zasso <targos@protonmail.com>2017-10-17 23:29:10 -0700
commit8e7ca5db8df9c6a558c7f1db61ceb3d2fe00e07e (patch)
treee3f2b02f34990a246296a6ea4eb199db9dd9ed4a /test/addons-napi
parent0418a4170b3fa4ecb99914246abfa4bf33b69b39 (diff)
downloadnode-new-8e7ca5db8df9c6a558c7f1db61ceb3d2fe00e07e.tar.gz
n-api,test: use module name macro
test_constructor_name.c should use NODE_GYP_MODULE_NAME. PR-URL: https://github.com/nodejs/node/pull/16146 Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
Diffstat (limited to 'test/addons-napi')
-rw-r--r--test/addons-napi/test_constructor/test_constructor_name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/addons-napi/test_constructor/test_constructor_name.c b/test/addons-napi/test_constructor/test_constructor_name.c
index b178e80f49..a5c89791f0 100644
--- a/test/addons-napi/test_constructor/test_constructor_name.c
+++ b/test/addons-napi/test_constructor/test_constructor_name.c
@@ -20,4 +20,4 @@ napi_value Init(napi_env env, napi_value exports) {
return cons;
}
-NAPI_MODULE(addon, Init)
+NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)