12
12
namespace node {
13
13
14
14
using v8::ArrayBuffer;
15
+ using v8::ArrayBufferCreationMode;
15
16
using v8::Boolean ;
16
17
using v8::Context;
17
18
using v8::Float64Array;
18
19
using v8::Function;
19
20
using v8::Integer;
21
+ using v8::NewStringType;
20
22
using v8::Number;
21
23
using v8::ObjectTemplate;
22
24
using v8::String;
@@ -1401,11 +1403,11 @@ void Http2Session::HandleAltSvcFrame(const nghttp2_frame* frame) {
1401
1403
Integer::New (isolate, id),
1402
1404
String::NewFromOneByte (isolate,
1403
1405
altsvc->origin ,
1404
- v8:: NewStringType::kNormal ,
1406
+ NewStringType::kNormal ,
1405
1407
altsvc->origin_len ).ToLocalChecked (),
1406
1408
String::NewFromOneByte (isolate,
1407
1409
altsvc->field_value ,
1408
- v8:: NewStringType::kNormal ,
1410
+ NewStringType::kNormal ,
1409
1411
altsvc->field_value_len ).ToLocalChecked (),
1410
1412
};
1411
1413
@@ -1430,7 +1432,7 @@ void Http2Session::HandleOriginFrame(const nghttp2_frame* frame) {
1430
1432
const nghttp2_origin_entry& entry = origin->ov [i];
1431
1433
origin_v[i] =
1432
1434
String::NewFromOneByte (
1433
- isolate, entry.origin , v8:: NewStringType::kNormal , entry.origin_len )
1435
+ isolate, entry.origin , NewStringType::kNormal , entry.origin_len )
1434
1436
.ToLocalChecked ();
1435
1437
}
1436
1438
Local<Value> holder = Array::New (isolate, origin_v.data (), origin_v.size ());
@@ -1813,7 +1815,7 @@ void Http2Session::OnStreamRead(ssize_t nread, const uv_buf_t& buf) {
1813
1815
ArrayBuffer::New (isolate,
1814
1816
buf.base ,
1815
1817
nread,
1816
- v8:: ArrayBufferCreationMode::kInternalized );
1818
+ ArrayBufferCreationMode::kInternalized );
1817
1819
1818
1820
statistics_.data_received += nread;
1819
1821
ssize_t ret = Write (&stream_buf_, 1 );
@@ -2316,7 +2318,7 @@ void HttpErrorString(const FunctionCallbackInfo<Value>& args) {
2316
2318
String::NewFromOneByte (
2317
2319
env->isolate (),
2318
2320
reinterpret_cast <const uint8_t *>(nghttp2_strerror (val)),
2319
- v8:: NewStringType::kInternalized ).ToLocalChecked ());
2321
+ NewStringType::kInternalized ).ToLocalChecked ());
2320
2322
}
2321
2323
2322
2324
0 commit comments