diff options
author | Andreas Haas <ahaas@google.com> | 2018-09-21 14:13:35 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-09-24 06:44:28 +0300 |
commit | 7dde560beb736e82b7867130a2d5824544122a60 (patch) | |
tree | c34d8cdc7be51ceee11ed3160e49acd1270319de /src/stream_pipe.cc | |
parent | a0c1326257b9679b056d8611ccdee2d6757b0bf0 (diff) |
src: replace deprecated uses of FunctionTemplate::GetFunction
PR-URL: https://github.com/nodejs/node/pull/22993
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/stream_pipe.cc')
-rw-r--r-- | src/stream_pipe.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stream_pipe.cc b/src/stream_pipe.cc index e19f98e35d2..90da2043af9 100644 --- a/src/stream_pipe.cc +++ b/src/stream_pipe.cc @@ -260,7 +260,10 @@ void InitializeStreamPipe(Local<Object> target, AsyncWrap::AddWrapMethods(env, pipe); pipe->SetClassName(stream_pipe_string); pipe->InstanceTemplate()->SetInternalFieldCount(1); - target->Set(context, stream_pipe_string, pipe->GetFunction()).FromJust(); + target + ->Set(context, stream_pipe_string, + pipe->GetFunction(context).ToLocalChecked()) + .FromJust(); } } // anonymous namespace |