From 011b53e28f365380f86324410ffce4c8c9d0e130 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Wed, 11 Oct 2017 16:44:36 +0300 Subject: [PATCH] n-api,test: use module name macro test_constructor_name.c should use NODE_GYP_MODULE_NAME. Backport-PR-URL: https://github.com/nodejs/node/pull/19447 PR-URL: https://github.com/nodejs/node/pull/16146 Reviewed-By: Franziska Hinkelmann Reviewed-By: James M Snell Reviewed-By: Evan Lucas --- test/addons-napi/test_constructor/test_constructor_name.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/addons-napi/test_constructor/test_constructor_name.c b/test/addons-napi/test_constructor/test_constructor_name.c index b178e80f49f489..a5c89791f0f0cd 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)