Skip to content

Commit 1025868

Browse files
committed
src: remove calls to deprecated V8 functions (Equals)
Remove all calls to deprecated V8 functions (here: Value::Equals) inside the code. PR-URL: #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>
1 parent c4ef170 commit 1025868

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/process_wrap.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ class ProcessWrap : public HandleWrap {
109109
Local<Value> type =
110110
stdio->Get(context, env->type_string()).ToLocalChecked();
111111

112-
if (type->Equals(env->ignore_string())) {
112+
if (type->StrictEquals(env->ignore_string())) {
113113
options->stdio[i].flags = UV_IGNORE;
114-
} else if (type->Equals(env->pipe_string())) {
114+
} else if (type->StrictEquals(env->pipe_string())) {
115115
options->stdio[i].flags = static_cast<uv_stdio_flags>(
116116
UV_CREATE_PIPE | UV_READABLE_PIPE | UV_WRITABLE_PIPE);
117117
Local<String> handle_key = env->handle_string();
@@ -121,7 +121,7 @@ class ProcessWrap : public HandleWrap {
121121
options->stdio[i].data.stream =
122122
reinterpret_cast<uv_stream_t*>(
123123
Unwrap<PipeWrap>(handle)->UVHandle());
124-
} else if (type->Equals(env->wrap_string())) {
124+
} else if (type->StrictEquals(env->wrap_string())) {
125125
Local<String> handle_key = env->handle_string();
126126
Local<Object> handle =
127127
stdio->Get(context, handle_key).ToLocalChecked().As<Object>();

0 commit comments

Comments
 (0)