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.
1 parent 0708737 commit 0d05f47Copy full SHA for 0d05f47
src/js_stream.cc
@@ -162,6 +162,7 @@ void JSStream::Finish(const FunctionCallbackInfo<Value>& args) {
162
163
164
void JSStream::ReadBuffer(const FunctionCallbackInfo<Value>& args) {
165
+ v8::TryCatch try_catch(args.GetIsolate());
166
JSStream* wrap;
167
ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());
168
@@ -182,6 +183,7 @@ void JSStream::ReadBuffer(const FunctionCallbackInfo<Value>& args) {
182
183
len -= static_cast<int>(avail);
184
wrap->EmitRead(avail, buf);
185
}
186
+ if (try_catch.HasCaught()) try_catch.ReThrow();
187
188
189
0 commit comments