Skip to content

Commit

Permalink
http2: minor cleanup
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jasnell authored and addaleax committed Aug 14, 2017
1 parent 174ab6f commit 33b03b2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/node_http2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1120,38 +1120,38 @@ void Initialize(Local<Object> target,

// Initialize the buffer used for padding callbacks
target->Set(context,
FIXED_ONE_BYTE_STRING(env->isolate(), "paddingArrayBuffer"),
ArrayBuffer::New(env->isolate(),
FIXED_ONE_BYTE_STRING(isolate, "paddingArrayBuffer"),
ArrayBuffer::New(isolate,
&http2_padding_buffer,
http2_padding_buffer_byte_length))
.FromJust();

// Initialize the buffer used to store the session state
target->Set(context,
FIXED_ONE_BYTE_STRING(env->isolate(), "sessionStateArrayBuffer"),
ArrayBuffer::New(env->isolate(),
FIXED_ONE_BYTE_STRING(isolate, "sessionStateArrayBuffer"),
ArrayBuffer::New(isolate,
&http2_session_state_buffer,
http2_session_state_buffer_byte_length))
.FromJust();

// Initialize the buffer used to store the stream state
target->Set(context,
FIXED_ONE_BYTE_STRING(env->isolate(), "streamStateArrayBuffer"),
ArrayBuffer::New(env->isolate(),
FIXED_ONE_BYTE_STRING(isolate, "streamStateArrayBuffer"),
ArrayBuffer::New(isolate,
&http2_stream_state_buffer,
http2_stream_state_buffer_byte_length))
.FromJust();

target->Set(context,
FIXED_ONE_BYTE_STRING(env->isolate(), "settingsArrayBuffer"),
ArrayBuffer::New(env->isolate(),
FIXED_ONE_BYTE_STRING(isolate, "settingsArrayBuffer"),
ArrayBuffer::New(isolate,
&http2_settings_buffer,
http2_settings_buffer_byte_length))
.FromJust();

target->Set(context,
FIXED_ONE_BYTE_STRING(env->isolate(), "optionsArrayBuffer"),
ArrayBuffer::New(env->isolate(),
FIXED_ONE_BYTE_STRING(isolate, "optionsArrayBuffer"),
ArrayBuffer::New(isolate,
&http2_options_buffer,
http2_options_buffer_byte_length))
.FromJust();
Expand Down

0 comments on commit 33b03b2

Please sign in to comment.