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.

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 targos committed Oct 18, 2017
1 parent 0418a41 commit 8e7ca5d
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 8e7ca5d

Please sign in to comment.