0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/addons
Daniel Bevenius 695590e386 test: fix compiler warnings in callback-scope
Currently there are two compiler warnings generated from the addons test
callback-scope:

../binding.cc:44:10:
warning: 'Resolve' is deprecated [-Wdeprecated-declarations]
  local->Resolve(v8::Undefined(isolate));
         ^
../../../../deps/v8/include/v8.h:3893:45:
note: 'Resolve' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", void Resolve(Local<Value> value));
         ^

../binding.cc:52:54:
warning: 'New' is deprecated [-Wdeprecated-declarations]
    persistent.Reset(isolate, v8::Promise::Resolver::New(isolate));
                                                     ^
../../../../deps/v8/include/v8.h:3880:42:
note: 'New' has been explicitly marked deprecated here
Local<Resolver> New(Isolate* isolate));

This commit updates the test to use non-deprecated functions.

PR-URL: https://github.com/nodejs/node/pull/19252
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2018-03-11 16:13:39 +01:00
..
async-hello-world test: fix warnings in addon tests 2018-02-16 15:47:07 -08:00
async-hooks-id test: properly tag anonymous namespaces 2018-02-08 18:43:36 -05:00
async-hooks-promise
async-resource test: properly tag anonymous namespaces 2018-02-08 18:43:36 -05:00
at-exit
buffer-free-callback
callback-scope test: fix compiler warnings in callback-scope 2018-03-11 16:13:39 +01:00
dlopen-ping-pong
errno-exception
heap-profiler
hello-world src: make process.dlopen() load well-known symbol 2018-03-01 13:45:57 +01:00
hello-world-esm lint: move eslint to new plugin system 2018-02-20 13:13:22 -06:00
hello-world-function-export
load-long-path test: move tmpdir to submodule of common 2018-01-31 22:11:07 -08:00
make-callback test: fix warnings in addon tests 2018-02-16 15:47:07 -08:00
make-callback-domain-warning test: fix deprecation warning in binding.cc 2018-02-22 06:25:58 +01:00
make-callback-recurse test: fix warnings in addon tests 2018-02-16 15:47:07 -08:00
new-target
node-module-version
not-a-binding
null-buffer-neuter
openssl-binding
openssl-client-cert-engine build: make gyp user defined variables lowercase 2018-02-01 09:51:16 +01:00
parse-encoding
repl-domain-abort test: fix warnings in addon tests 2018-02-16 15:47:07 -08:00
stringbytes-external-exceed-max
symlinked-module test: specify 'dir' for directory symlinks 2018-03-01 15:47:29 -08:00
zlib-binding
.gitignore
testcfg.py