8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
StreamPipe::New
1 parent cff3725 commit 33728cbCopy full SHA for 33728cb
src/stream_pipe.cc
@@ -278,6 +278,8 @@ void StreamPipe::New(const FunctionCallbackInfo<Value>& args) {
278
CHECK(args[1]->IsObject());
279
StreamBase* source = StreamBase::FromObject(args[0].As<Object>());
280
StreamBase* sink = StreamBase::FromObject(args[1].As<Object>());
281
+ CHECK_NOT_NULL(source);
282
+ CHECK_NOT_NULL(sink);
283
284
if (StreamPipe::New(source, sink, args.This()).IsNothing()) return;
285
}
0 commit comments