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 <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
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

+3-3
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)