Skip to content

Commit 33b03b2

Browse files
jasnelladdaleax
authored andcommitted
http2: minor cleanup
Backport-PR-URL: #14813 Backport-Reviewed-By: Anna Henningsen <[email protected]> Backport-Reviewed-By: Timothy Gu <[email protected]> PR-URL: #14239 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent 174ab6f commit 33b03b2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/node_http2.cc

+10-10
Original file line numberDiff line numberDiff line change
@@ -1120,38 +1120,38 @@ void Initialize(Local<Object> target,
11201120

11211121
// Initialize the buffer used for padding callbacks
11221122
target->Set(context,
1123-
FIXED_ONE_BYTE_STRING(env->isolate(), "paddingArrayBuffer"),
1124-
ArrayBuffer::New(env->isolate(),
1123+
FIXED_ONE_BYTE_STRING(isolate, "paddingArrayBuffer"),
1124+
ArrayBuffer::New(isolate,
11251125
&http2_padding_buffer,
11261126
http2_padding_buffer_byte_length))
11271127
.FromJust();
11281128

11291129
// Initialize the buffer used to store the session state
11301130
target->Set(context,
1131-
FIXED_ONE_BYTE_STRING(env->isolate(), "sessionStateArrayBuffer"),
1132-
ArrayBuffer::New(env->isolate(),
1131+
FIXED_ONE_BYTE_STRING(isolate, "sessionStateArrayBuffer"),
1132+
ArrayBuffer::New(isolate,
11331133
&http2_session_state_buffer,
11341134
http2_session_state_buffer_byte_length))
11351135
.FromJust();
11361136

11371137
// Initialize the buffer used to store the stream state
11381138
target->Set(context,
1139-
FIXED_ONE_BYTE_STRING(env->isolate(), "streamStateArrayBuffer"),
1140-
ArrayBuffer::New(env->isolate(),
1139+
FIXED_ONE_BYTE_STRING(isolate, "streamStateArrayBuffer"),
1140+
ArrayBuffer::New(isolate,
11411141
&http2_stream_state_buffer,
11421142
http2_stream_state_buffer_byte_length))
11431143
.FromJust();
11441144

11451145
target->Set(context,
1146-
FIXED_ONE_BYTE_STRING(env->isolate(), "settingsArrayBuffer"),
1147-
ArrayBuffer::New(env->isolate(),
1146+
FIXED_ONE_BYTE_STRING(isolate, "settingsArrayBuffer"),
1147+
ArrayBuffer::New(isolate,
11481148
&http2_settings_buffer,
11491149
http2_settings_buffer_byte_length))
11501150
.FromJust();
11511151

11521152
target->Set(context,
1153-
FIXED_ONE_BYTE_STRING(env->isolate(), "optionsArrayBuffer"),
1154-
ArrayBuffer::New(env->isolate(),
1153+
FIXED_ONE_BYTE_STRING(isolate, "optionsArrayBuffer"),
1154+
ArrayBuffer::New(isolate,
11551155
&http2_options_buffer,
11561156
http2_options_buffer_byte_length))
11571157
.FromJust();

0 commit comments

Comments
 (0)