summaryrefslogtreecommitdiff
path: root/test/addons/async-hello-world/binding.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/addons/async-hello-world/binding.cc')
-rw-r--r--test/addons/async-hello-world/binding.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/addons/async-hello-world/binding.cc b/test/addons/async-hello-world/binding.cc
index 3a584a88a0..1bf94ddd1d 100644
--- a/test/addons/async-hello-world/binding.cc
+++ b/test/addons/async-hello-world/binding.cc
@@ -53,7 +53,8 @@ void AfterAsync(uv_work_t* r) {
// This should be changed to an empty handle.
assert(!ret.IsEmpty());
} else {
- callback->Call(global, 2, argv);
+ callback->Call(isolate->GetCurrentContext(),
+ global, 2, argv).ToLocalChecked();
}
// cleanup