Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

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

PR-URL: nodejs/node#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 addaleax committed Oct 18, 2017
1 parent 2e62535 commit 2e3a4cf
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 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/callback-scope/binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ void Initialize(v8::Local<v8::Object> exports) {

} // namespace

NODE_MODULE(binding, Initialize)
NODE_MODULE(NODE_GYP_MODULE_NAME, Initialize)
2 changes: 1 addition & 1 deletion test/addons/dlopen-ping-pong/binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void init(Local<Object> exports) {
NODE_SET_METHOD(exports, "ping", Ping);
}

NODE_MODULE(binding, init)
NODE_MODULE(NODE_GYP_MODULE_NAME, init)

} // anonymous namespace

Expand Down
2 changes: 1 addition & 1 deletion test/addons/node-module-version/binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ inline void Initialize(v8::Local<v8::Object> exports,

}

NODE_MODULE_CONTEXT_AWARE(binding, Initialize)
NODE_MODULE_CONTEXT_AWARE(NODE_GYP_MODULE_NAME, Initialize)
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)
2 changes: 1 addition & 1 deletion test/gc/binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,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 2e3a4cf

Please sign in to comment.