From 1025868d5c40796d6b342583625ba0c986172f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sun, 2 Sep 2018 20:16:03 +0200 Subject: [PATCH] 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 Reviewed-By: Daniel Bevenius Reviewed-By: Ujjwal Sharma Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater --- src/process_wrap.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/process_wrap.cc b/src/process_wrap.cc index 252bb9867fd6c2..a38dd082111c4b 100644 --- a/src/process_wrap.cc +++ b/src/process_wrap.cc @@ -109,9 +109,9 @@ class ProcessWrap : public HandleWrap { Local 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_CREATE_PIPE | UV_READABLE_PIPE | UV_WRITABLE_PIPE); Local handle_key = env->handle_string(); @@ -121,7 +121,7 @@ class ProcessWrap : public HandleWrap { options->stdio[i].data.stream = reinterpret_cast( Unwrap(handle)->UVHandle()); - } else if (type->Equals(env->wrap_string())) { + } else if (type->StrictEquals(env->wrap_string())) { Local handle_key = env->handle_string(); Local handle = stdio->Get(context, handle_key).ToLocalChecked().As();