diff --git a/test/addons/at-exit/binding.cc b/test/addons/at-exit/binding.cc index 5210de298b8b39..8f9d0b461c767e 100644 --- a/test/addons/at-exit/binding.cc +++ b/test/addons/at-exit/binding.cc @@ -33,8 +33,8 @@ static void sanity_check(void) { assert(at_exit_cb2_called == 2); } -void init(Local target) { - AtExit(at_exit_cb1, target->CreationContext()->GetIsolate()); +void init(Local exports) { + AtExit(at_exit_cb1, exports->GetIsolate()); AtExit(at_exit_cb2, cookie); AtExit(at_exit_cb2, cookie); atexit(sanity_check); diff --git a/test/addons/buffer-free-callback/binding.cc b/test/addons/buffer-free-callback/binding.cc index a72386fdd627ab..5c95f594e74fb7 100644 --- a/test/addons/buffer-free-callback/binding.cc +++ b/test/addons/buffer-free-callback/binding.cc @@ -36,9 +36,9 @@ void Check(const v8::FunctionCallbackInfo& args) { assert(alive > 0); } -void init(v8::Local target) { - NODE_SET_METHOD(target, "alloc", Alloc); - NODE_SET_METHOD(target, "check", Check); +void init(v8::Local exports) { + NODE_SET_METHOD(exports, "alloc", Alloc); + NODE_SET_METHOD(exports, "check", Check); } NODE_MODULE(binding, init); diff --git a/test/addons/hello-world/binding.cc b/test/addons/hello-world/binding.cc index b21f87d0fd5f4b..8a8145f01618d2 100644 --- a/test/addons/hello-world/binding.cc +++ b/test/addons/hello-world/binding.cc @@ -7,8 +7,8 @@ void Method(const v8::FunctionCallbackInfo& args) { args.GetReturnValue().Set(v8::String::NewFromUtf8(isolate, "world")); } -void init(v8::Local target) { - NODE_SET_METHOD(target, "hello", Method); +void init(v8::Local exports) { + NODE_SET_METHOD(exports, "hello", Method); } NODE_MODULE(binding, init); diff --git a/test/addons/load-long-path/binding.cc b/test/addons/load-long-path/binding.cc index cdf9904e3f8d47..1cdcb4c200f488 100644 --- a/test/addons/load-long-path/binding.cc +++ b/test/addons/load-long-path/binding.cc @@ -6,8 +6,8 @@ void Method(const v8::FunctionCallbackInfo& args) { args.GetReturnValue().Set(v8::String::NewFromUtf8(isolate, "world")); } -void init(v8::Local target) { - NODE_SET_METHOD(target, "hello", Method); +void init(v8::Local exports) { + NODE_SET_METHOD(exports, "hello", Method); } NODE_MODULE(binding, init); diff --git a/test/addons/make-callback-recurse/binding.cc b/test/addons/make-callback-recurse/binding.cc index 3e3a1464930477..4ca5426f9ec28f 100644 --- a/test/addons/make-callback-recurse/binding.cc +++ b/test/addons/make-callback-recurse/binding.cc @@ -22,8 +22,8 @@ void MakeCallback(const FunctionCallbackInfo& args) { node::MakeCallback(isolate, recv, method, 0, nullptr); } -void Initialize(Local target) { - NODE_SET_METHOD(target, "makeCallback", MakeCallback); +void Initialize(Local exports) { + NODE_SET_METHOD(exports, "makeCallback", MakeCallback); } } // namespace diff --git a/test/addons/make-callback/binding.cc b/test/addons/make-callback/binding.cc index 8970e9fb1af76c..3b56c385ecdd00 100644 --- a/test/addons/make-callback/binding.cc +++ b/test/addons/make-callback/binding.cc @@ -30,8 +30,8 @@ void MakeCallback(const v8::FunctionCallbackInfo& args) { args.GetReturnValue().Set(result); } -void Initialize(v8::Local target) { - NODE_SET_METHOD(target, "makeCallback", MakeCallback); +void Initialize(v8::Local exports) { + NODE_SET_METHOD(exports, "makeCallback", MakeCallback); } } // namespace diff --git a/test/addons/null-buffer-neuter/binding.cc b/test/addons/null-buffer-neuter/binding.cc index 532e22883383dd..d0f26d4cc50222 100644 --- a/test/addons/null-buffer-neuter/binding.cc +++ b/test/addons/null-buffer-neuter/binding.cc @@ -34,8 +34,8 @@ void Run(const v8::FunctionCallbackInfo& args) { assert(alive == 0); } -void init(v8::Local target) { - NODE_SET_METHOD(target, "run", Run); +void init(v8::Local exports) { + NODE_SET_METHOD(exports, "run", Run); } NODE_MODULE(binding, init); diff --git a/test/addons/parse-encoding/binding.cc b/test/addons/parse-encoding/binding.cc index 0a31569e039691..5c56d97fc6ac98 100644 --- a/test/addons/parse-encoding/binding.cc +++ b/test/addons/parse-encoding/binding.cc @@ -29,8 +29,8 @@ void ParseEncoding(const v8::FunctionCallbackInfo& args) { args.GetReturnValue().Set(encoding_string); } -void Initialize(v8::Local target) { - NODE_SET_METHOD(target, "parseEncoding", ParseEncoding); +void Initialize(v8::Local exports) { + NODE_SET_METHOD(exports, "parseEncoding", ParseEncoding); } } // anonymous namespace diff --git a/test/addons/repl-domain-abort/binding.cc b/test/addons/repl-domain-abort/binding.cc index 7d9b6e5513c9a6..e7415c317fc89f 100644 --- a/test/addons/repl-domain-abort/binding.cc +++ b/test/addons/repl-domain-abort/binding.cc @@ -19,8 +19,8 @@ void Method(const FunctionCallbackInfo& args) { NULL); } -void init(Local target) { - NODE_SET_METHOD(target, "method", Method); +void init(Local exports) { + NODE_SET_METHOD(exports, "method", Method); } NODE_MODULE(binding, init); diff --git a/test/addons/stringbytes-external-exceed-max/binding.cc b/test/addons/stringbytes-external-exceed-max/binding.cc index 65390852c2d2dd..03fa29f2737e0a 100644 --- a/test/addons/stringbytes-external-exceed-max/binding.cc +++ b/test/addons/stringbytes-external-exceed-max/binding.cc @@ -17,8 +17,8 @@ void EnsureAllocation(const v8::FunctionCallbackInfo &args) { args.GetReturnValue().Set(success); } -void init(v8::Local target) { - NODE_SET_METHOD(target, "ensureAllocation", EnsureAllocation); +void init(v8::Local exports) { + NODE_SET_METHOD(exports, "ensureAllocation", EnsureAllocation); } NODE_MODULE(binding, init); diff --git a/test/addons/symlinked-module/binding.cc b/test/addons/symlinked-module/binding.cc index cdf9904e3f8d47..1cdcb4c200f488 100644 --- a/test/addons/symlinked-module/binding.cc +++ b/test/addons/symlinked-module/binding.cc @@ -6,8 +6,8 @@ void Method(const v8::FunctionCallbackInfo& args) { args.GetReturnValue().Set(v8::String::NewFromUtf8(isolate, "world")); } -void init(v8::Local target) { - NODE_SET_METHOD(target, "hello", Method); +void init(v8::Local exports) { + NODE_SET_METHOD(exports, "hello", Method); } NODE_MODULE(binding, init);