diff --git a/src/process_wrap.cc b/src/process_wrap.cc index e06afd84ffb7c8..a80ea6b04dc70d 100644 --- a/src/process_wrap.cc +++ b/src/process_wrap.cc @@ -108,9 +108,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(); @@ -120,7 +120,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();