Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-07-07 23:03:17 +0300
committerAnna Henningsen <anna@addaleax.net>2020-07-14 16:13:34 +0300
commita038199265519fa4db88a639b0e438675d23c4d1 (patch)
tree66b40d0be7e8c67e9d69593d6e00d8fd2b2ca319 /src/node_perf.cc
parent2a29650eb328417de68beb617b22e83810e9296a (diff)
src,doc,test: remove String::New default parameter
`kNormal` has been the implicit default for a while now (since V8 7.6). Refs: https://github.com/v8/v8/commit/e0d7f816990ada28ebe1281ca9431236ef8c6e4f PR-URL: https://github.com/nodejs/node/pull/34248 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_perf.cc')
-rw-r--r--src/node_perf.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/node_perf.cc b/src/node_perf.cc
index 916a9974d5d..b5efc05689f 100644
--- a/src/node_perf.cc
+++ b/src/node_perf.cc
@@ -24,7 +24,6 @@ using v8::Isolate;
using v8::Local;
using v8::Map;
using v8::MaybeLocal;
-using v8::NewStringType;
using v8::Number;
using v8::Object;
using v8::PropertyAttribute;
@@ -60,16 +59,14 @@ inline void InitObject(const PerformanceEntry& entry, Local<Object> obj) {
obj->DefineOwnProperty(context,
env->name_string(),
String::NewFromUtf8(isolate,
- entry.name().c_str(),
- NewStringType::kNormal)
+ entry.name().c_str())
.ToLocalChecked(),
attr)
.Check();
obj->DefineOwnProperty(context,
env->entry_type_string(),
String::NewFromUtf8(isolate,
- entry.type().c_str(),
- NewStringType::kNormal)
+ entry.type().c_str())
.ToLocalChecked(),
attr)
.Check();