Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2018-09-02 21:16:03 +0300
committerMichaël Zasso <targos@protonmail.com>2018-09-05 14:54:38 +0300
commit0740394269a5c17402686ffe8b66adc5095c7079 (patch)
treec71dc136e3e765b717d8fbd9882e9a273d2843ff /src/process_wrap.cc
parentd9ea50ee66b93266f0c8ebe9d98502816e04acf2 (diff)
src: remove calls to deprecated V8 functions (Equals)
Remove all calls to deprecated V8 functions (here: Value::Equals) inside the code. PR-URL: https://github.com/nodejs/node/pull/22665 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/process_wrap.cc')
-rw-r--r--src/process_wrap.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/process_wrap.cc b/src/process_wrap.cc
index 2841595c1f1..e072b10e3fa 100644
--- a/src/process_wrap.cc
+++ b/src/process_wrap.cc
@@ -109,9 +109,9 @@ class ProcessWrap : public HandleWrap {
Local<Value> type =
stdio->Get(context, env->type_string()).ToLocalChecked();
- if (type->Equals(env->ignore_string())) {
+ if (type->StrictEquals(env->ignore_string())) {
options->stdio[i].flags = UV_IGNORE;
- } else if (type->Equals(env->pipe_string())) {
+ } else if (type->StrictEquals(env->pipe_string())) {
options->stdio[i].flags = static_cast<uv_stdio_flags>(
UV_CREATE_PIPE | UV_READABLE_PIPE | UV_WRITABLE_PIPE);
Local<String> handle_key = env->handle_string();
@@ -121,7 +121,7 @@ class ProcessWrap : public HandleWrap {
options->stdio[i].data.stream =
reinterpret_cast<uv_stream_t*>(
Unwrap<PipeWrap>(handle)->UVHandle());
- } else if (type->Equals(env->wrap_string())) {
+ } else if (type->StrictEquals(env->wrap_string())) {
Local<String> handle_key = env->handle_string();
Local<Object> handle =
stdio->Get(context, handle_key).ToLocalChecked().As<Object>();