diff --git a/test/addons/async-hello-world/binding.cc b/test/addons/async-hello-world/binding.cc index d4b74ed831f..3a584a88a07 100644 --- a/test/addons/async-hello-world/binding.cc +++ b/test/addons/async-hello-world/binding.cc @@ -73,7 +73,7 @@ void Method(const v8::FunctionCallbackInfo& args) { async_req* req = new async_req; req->req.data = req; - req->input = args[0]->IntegerValue(); + req->input = args[0].As()->Value(); req->output = 0; req->isolate = isolate; req->context = node::EmitAsyncInit(isolate, v8::Object::New(isolate), "test"); diff --git a/test/addons/buffer-free-callback/binding.cc b/test/addons/buffer-free-callback/binding.cc index 4075fef50dc..64f3e031ad5 100644 --- a/test/addons/buffer-free-callback/binding.cc +++ b/test/addons/buffer-free-callback/binding.cc @@ -15,8 +15,8 @@ void Alloc(const v8::FunctionCallbackInfo& args) { v8::Isolate* isolate = args.GetIsolate(); alive++; - uintptr_t alignment = args[1]->IntegerValue(); - uintptr_t offset = args[2]->IntegerValue(); + uintptr_t alignment = args[1].As()->Value(); + uintptr_t offset = args[2].As()->Value(); uintptr_t static_offset = reinterpret_cast(buf) % alignment; char* aligned = buf + (alignment - static_offset) + offset; @@ -24,7 +24,7 @@ void Alloc(const v8::FunctionCallbackInfo& args) { args.GetReturnValue().Set(node::Buffer::New( isolate, aligned, - args[0]->IntegerValue(), + args[0].As()->Value(), FreeCallback, nullptr).ToLocalChecked()); } diff --git a/test/addons/stringbytes-external-exceed-max/binding.cc b/test/addons/stringbytes-external-exceed-max/binding.cc index 628a6b69137..573b505bdec 100644 --- a/test/addons/stringbytes-external-exceed-max/binding.cc +++ b/test/addons/stringbytes-external-exceed-max/binding.cc @@ -4,7 +4,7 @@ void EnsureAllocation(const v8::FunctionCallbackInfo &args) { v8::Isolate* isolate = args.GetIsolate(); - uintptr_t size = args[0]->IntegerValue(); + uintptr_t size = args[0].As()->Value(); v8::Local success; void* buffer = malloc(size);