Permalink
Browse files

n-api: use module name macro

Update tests to use module name macro

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 jasnell committed Oct 13, 2017
1 parent a1c0804 commit 6bc82daef0550ca820c2c30b40670f3ee810e2c4
@@ -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)
@@ -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)
@@ -68,4 +68,4 @@ void Initialize(v8::Local<v8::Object> exports) {
} // namespace
NODE_MODULE(binding, Initialize)
NODE_MODULE(NODE_GYP_MODULE_NAME, Initialize)
@@ -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
@@ -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)
@@ -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)
@@ -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)
View
@@ -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.