Skip to content

Commit 38e471c

Browse files
committed
fixup! src: move HTTP/2 state out of Environment
1 parent 5a2317d commit 38e471c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_http2.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2938,8 +2938,8 @@ void Initialize(Local<Object> target,
29382938
HandleScope handle_scope(isolate);
29392939

29402940
Environment::BindingScope<Http2State> binding_scope(env);
2941+
if (!binding_scope) return;
29412942
Http2State* state = binding_scope.data;
2942-
if (state == nullptr) return;
29432943

29442944
#define SET_STATE_TYPEDARRAY(name, field) \
29452945
target->Set(context, \

0 commit comments

Comments
 (0)