summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/addons/async-hello-world/binding.cc2
-rw-r--r--test/addons/buffer-free-callback/binding.cc6
-rw-r--r--test/addons/stringbytes-external-exceed-max/binding.cc2
3 files changed, 5 insertions, 5 deletions
diff --git a/test/addons/async-hello-world/binding.cc b/test/addons/async-hello-world/binding.cc
index d4b74ed831..3a584a88a0 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<v8::Value>& args) {
async_req* req = new async_req;
req->req.data = req;
- req->input = args[0]->IntegerValue();
+ req->input = args[0].As<v8::Integer>()->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 4075fef50d..64f3e031ad 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<v8::Value>& 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<v8::Integer>()->Value();
+ uintptr_t offset = args[2].As<v8::Integer>()->Value();
uintptr_t static_offset = reinterpret_cast<uintptr_t>(buf) % alignment;
char* aligned = buf + (alignment - static_offset) + offset;
@@ -24,7 +24,7 @@ void Alloc(const v8::FunctionCallbackInfo<v8::Value>& args) {
args.GetReturnValue().Set(node::Buffer::New(
isolate,
aligned,
- args[0]->IntegerValue(),
+ args[0].As<v8::Integer>()->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 628a6b6913..573b505bde 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<v8::Value> &args) {
v8::Isolate* isolate = args.GetIsolate();
- uintptr_t size = args[0]->IntegerValue();
+ uintptr_t size = args[0].As<v8::Integer>()->Value();
v8::Local<v8::Boolean> success;
void* buffer = malloc(size);