summaryrefslogtreecommitdiff
path: root/src/stream_pipe.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream_pipe.cc')
-rw-r--r--src/stream_pipe.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stream_pipe.cc b/src/stream_pipe.cc
index e19f98e35d..90da2043af 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