diff options
Diffstat (limited to 'test/addons/async-hello-world/binding.cc')
-rw-r--r-- | test/addons/async-hello-world/binding.cc | 2 |
1 files changed, 1 insertions, 1 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"); |