diff --git a/src/node_http2.cc b/src/node_http2.cc index 0b97e524b3dbc3..3e59c61b8641ac 100644 --- a/src/node_http2.cc +++ b/src/node_http2.cc @@ -12,11 +12,13 @@ namespace node { using v8::ArrayBuffer; +using v8::ArrayBufferCreationMode; using v8::Boolean; using v8::Context; using v8::Float64Array; using v8::Function; using v8::Integer; +using v8::NewStringType; using v8::Number; using v8::ObjectTemplate; using v8::String; @@ -1411,11 +1413,11 @@ void Http2Session::HandleAltSvcFrame(const nghttp2_frame* frame) { Integer::New(isolate, id), String::NewFromOneByte(isolate, altsvc->origin, - v8::NewStringType::kNormal, + NewStringType::kNormal, altsvc->origin_len).ToLocalChecked(), String::NewFromOneByte(isolate, altsvc->field_value, - v8::NewStringType::kNormal, + NewStringType::kNormal, altsvc->field_value_len).ToLocalChecked(), }; @@ -1445,7 +1447,7 @@ void Http2Session::HandleOriginFrame(const nghttp2_frame* frame) { argv[j++] = String::NewFromOneByte(isolate, entry.origin, - v8::NewStringType::kNormal, + NewStringType::kNormal, entry.origin_len).ToLocalChecked(); } if (j > 0) @@ -2330,7 +2332,7 @@ void HttpErrorString(const FunctionCallbackInfo& args) { String::NewFromOneByte( env->isolate(), reinterpret_cast(nghttp2_strerror(val)), - v8::NewStringType::kInternalized).ToLocalChecked()); + NewStringType::kInternalized).ToLocalChecked()); }