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 9b4b115 commit 5de75f0Copy full SHA for 5de75f0
1 file changed
src/node_http2.cc
@@ -2928,9 +2928,11 @@ void Http2Session::UpdateChunksSent(const FunctionCallbackInfo<Value>& args) {
2928
2929
uint32_t length = session->chunks_sent_since_last_write_;
2930
2931
- session->object()->Set(env->context(),
2932
- env->chunks_sent_since_last_write_string(),
2933
- Integer::NewFromUnsigned(isolate, length)).Check();
+ if (session->object()->Set(env->context(),
+ env->chunks_sent_since_last_write_string(),
+ Integer::NewFromUnsigned(isolate, length)).IsNothing()) {
2934
+ return;
2935
+ }
2936
2937
args.GetReturnValue().Set(length);
2938
}
0 commit comments