diff options
author | Ujjwal Sharma <usharma1998@gmail.com> | 2018-08-02 00:00:46 +0300 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2018-09-01 21:37:08 +0300 |
commit | 59e5a39d300aba3c018e7abb13f4f3e94a1398d4 (patch) | |
tree | ea957f2a3a710cc8da9120af893ce8faa3a8adef /src/tcp_wrap.cc | |
parent | c8880ea27645aec31ef9dd5687c57747f338d67f (diff) |
src: remove calls to deprecated v8 functions (BooleanValue)
Remove all calls to deprecated v8 functions (here:
Value::BooleanValue) inside the code (src directory only).
PR-URL: https://github.com/nodejs/node/pull/22075
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/tcp_wrap.cc')
-rw-r--r-- | src/tcp_wrap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc index ebc82f46683..ab8b30e8460 100644 --- a/src/tcp_wrap.cc +++ b/src/tcp_wrap.cc @@ -168,7 +168,7 @@ void TCPWrap::SetNoDelay(const FunctionCallbackInfo<Value>& args) { ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder(), args.GetReturnValue().Set(UV_EBADF)); - int enable = static_cast<int>(args[0]->BooleanValue()); + int enable = static_cast<int>(args[0]->IsTrue()); int err = uv_tcp_nodelay(&wrap->handle_, enable); args.GetReturnValue().Set(err); } @@ -192,7 +192,7 @@ void TCPWrap::SetSimultaneousAccepts(const FunctionCallbackInfo<Value>& args) { ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder(), args.GetReturnValue().Set(UV_EBADF)); - bool enable = args[0]->BooleanValue(); + bool enable = args[0]->IsTrue(); int err = uv_tcp_simultaneous_accepts(&wrap->handle_, enable); args.GetReturnValue().Set(err); } |