diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2018-02-15 18:39:49 -0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-02-16 15:47:07 -0800 |
commit | 6ab288f3b817197631f23dd858b1b622d80dab27 (patch) | |
tree | efb302595a301f35bb85492746e597173dec62b4 /test/addons/callback-scope | |
parent | 197258bda7a9cf133ed4ff155cfd94c22f9e9510 (diff) | |
download | android-node-v8-6ab288f3b817197631f23dd858b1b622d80dab27.tar.gz android-node-v8-6ab288f3b817197631f23dd858b1b622d80dab27.tar.bz2 android-node-v8-6ab288f3b817197631f23dd858b1b622d80dab27.zip |
test: fix warnings in addon tests
The legacy MakeCallback deprecation was resulting in compile time
warnings in adddon tests. Fix them.
Ref: https://github.com/nodejs/node/pull/18632
PR-URL: https://github.com/nodejs/node/pull/18810
Refs: https://github.com/nodejs/node/pull/18632
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'test/addons/callback-scope')
-rw-r--r-- | test/addons/callback-scope/binding.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/addons/callback-scope/binding.cc b/test/addons/callback-scope/binding.cc index 52ffe8e91f..3b69d2d572 100644 --- a/test/addons/callback-scope/binding.cc +++ b/test/addons/callback-scope/binding.cc @@ -36,7 +36,8 @@ static v8::Persistent<v8::Promise::Resolver> persistent; static void Callback(uv_work_t* req, int ignored) { v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8::HandleScope scope(isolate); - node::CallbackScope callback_scope(isolate, v8::Object::New(isolate), {0, 0}); + node::CallbackScope callback_scope(isolate, v8::Object::New(isolate), + node::async_context{0, 0}); v8::Local<v8::Promise::Resolver> local = v8::Local<v8::Promise::Resolver>::New(isolate, persistent); |