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

PR-URL: #16185
Reviewed-By: Gabriel Schulhof <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
mhdawson authored and jasnell committed Oct 15, 2017
1 parent a1c0804 commit 6bc82da
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 6bc82da

Please sign in to comment.