Skip to content

Commit

Permalink
n-api: use module name macro
Browse files Browse the repository at this point in the history
Update tests to use module name macro

Backport-PR-URL: #19447
PR-URL: #16185
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
mhdawson authored and MylesBorins committed Apr 16, 2018
1 parent 0c67f21 commit 169b53e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/addons-napi/test_warning/test_warning.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ napi_value Init(napi_env env, napi_value exports) {
return result;
}

NAPI_MODULE(test_warning, Init)
NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
2 changes: 1 addition & 1 deletion test/addons-napi/test_warning/test_warning2.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ napi_value Init(napi_env env, napi_value exports) {
return result;
}

NAPI_MODULE(test_warning2, Init)
NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
2 changes: 1 addition & 1 deletion test/addons/openssl-binding/binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ inline void Initialize(v8::Local<v8::Object> exports,

} // anonymous namespace

NODE_MODULE_CONTEXT_AWARE(binding, Initialize)
NODE_MODULE_CONTEXT_AWARE(NODE_GYP_MODULE_NAME, Initialize)
2 changes: 1 addition & 1 deletion test/addons/zlib-binding/binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ inline void Initialize(v8::Local<v8::Object> exports,

} // anonymous namespace

NODE_MODULE_CONTEXT_AWARE(binding, Initialize)
NODE_MODULE_CONTEXT_AWARE(NODE_GYP_MODULE_NAME, Initialize)

0 comments on commit 169b53e

Please sign in to comment.