summaryrefslogtreecommitdiff
path: root/src/node_http2.cc
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2017-08-18 21:58:25 -0700
committerJames M Snell <jasnell@gmail.com>2017-08-23 10:35:19 -0700
commit771a03dfe3dba6ac3136bd4aa25525220e29b0ff (patch)
tree9276a1e18c07fcead1ce87a384a7a47e42f00d79 /src/node_http2.cc
parent0ce54a7ec96431a088a15a5e24614428184497f0 (diff)
downloadandroid-node-v8-771a03dfe3dba6ac3136bd4aa25525220e29b0ff.tar.gz
android-node-v8-771a03dfe3dba6ac3136bd4aa25525220e29b0ff.tar.bz2
android-node-v8-771a03dfe3dba6ac3136bd4aa25525220e29b0ff.zip
src: fixup strings, reduce duplication
PR-URL: https://github.com/nodejs/node/pull/14937 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_http2.cc')
-rwxr-xr-xsrc/node_http2.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node_http2.cc b/src/node_http2.cc
index 9308e9e68e..70dcc5e00d 100755
--- a/src/node_http2.cc
+++ b/src/node_http2.cc
@@ -1206,8 +1206,7 @@ void Initialize(Local<Object> target,
env->SetMethod(target, "nghttp2ErrorString", HttpErrorString);
Local<String> http2SessionClassName =
- String::NewFromUtf8(isolate, "Http2Session",
- v8::NewStringType::kInternalized).ToLocalChecked();
+ FIXED_ONE_BYTE_STRING(isolate, "Http2Session");
Local<FunctionTemplate> session =
env->NewFunctionTemplate(Http2Session::New);