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 <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>
This commit is contained in:
Родитель
f7daf6b40e
Коммит
dd8e0075b7
|
@ -109,9 +109,9 @@ class ProcessWrap : public HandleWrap {
|
|||
Local<Value> 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_stdio_flags>(
|
||||
UV_CREATE_PIPE | UV_READABLE_PIPE | UV_WRITABLE_PIPE);
|
||||
Local<String> handle_key = env->handle_string();
|
||||
|
@ -121,7 +121,7 @@ class ProcessWrap : public HandleWrap {
|
|||
options->stdio[i].data.stream =
|
||||
reinterpret_cast<uv_stream_t*>(
|
||||
Unwrap<PipeWrap>(handle)->UVHandle());
|
||||
} else if (type->Equals(env->wrap_string())) {
|
||||
} else if (type->StrictEquals(env->wrap_string())) {
|
||||
Local<String> handle_key = env->handle_string();
|
||||
Local<Object> handle =
|
||||
stdio->Get(context, handle_key).ToLocalChecked().As<Object>();
|
||||
|
|
Загрузка…
Ссылка в новой задаче