From 33b03b2ab27d3fdcb0597f073426ac6ea0a14c9b Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 1 Aug 2017 08:18:48 -0700 Subject: [PATCH] http2: minor cleanup Backport-PR-URL: https://github.com/nodejs/node/pull/14813 Backport-Reviewed-By: Anna Henningsen Backport-Reviewed-By: Timothy Gu PR-URL: https://github.com/nodejs/node/pull/14239 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Matteo Collina --- src/node_http2.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/node_http2.cc b/src/node_http2.cc index 2a48fae3fbb8e1..12a6aeca1524a6 100755 --- a/src/node_http2.cc +++ b/src/node_http2.cc @@ -1120,38 +1120,38 @@ void Initialize(Local 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();