Skip to content

Commit 9a76224

Browse files
committed
src: remove calls to deprecated V8 functions (Equals)
Remove all calls to deprecated V8 functions (here: Value::Equals) inside the code.
1 parent 9f7efd5 commit 9a76224

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/process_wrap.cc

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

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

0 commit comments

Comments
 (0)