Commit 328ad0a7 authored by jbroman's avatar jbroman Committed by Commit bot

Use internalized strings for v8::Template::Set shorthand.

The string will be internalized anyhow when the first object is instantiated,
and since templates are eternal, the string will be eternal anyhow even if
the template is never instantiated.

Review-Url: https://codereview.chromium.org/2697683002
Cr-Commit-Position: refs/heads/master@{#43187}
parent e432f07d
......@@ -9077,7 +9077,7 @@ Local<Boolean> Boolean::New(Isolate* isolate, bool value) {
}
void Template::Set(Isolate* isolate, const char* name, Local<Data> value) {
Set(String::NewFromUtf8(isolate, name, NewStringType::kNormal)
Set(String::NewFromUtf8(isolate, name, NewStringType::kInternalized)
.ToLocalChecked(),
value);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment