Skip to content

Commit

Permalink
n-api,test: use module name macro
Browse files Browse the repository at this point in the history
test_constructor_name.c should use NODE_GYP_MODULE_NAME.

Backport-PR-URL: #19447
PR-URL: #16146
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
  • Loading branch information
Gabriel Schulhof authored and MylesBorins committed Apr 16, 2018
1 parent 32412a8 commit 011b53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/addons-napi/test_constructor/test_constructor_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 011b53e

Please sign in to comment.