summaryrefslogtreecommitdiff
path: root/src/node_perf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_perf.cc')
-rw-r--r--src/node_perf.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/node_perf.cc b/src/node_perf.cc
index 900fbb4c9d..a1ca57e2d5 100644
--- a/src/node_perf.cc
+++ b/src/node_perf.cc
@@ -75,14 +75,18 @@ inline void InitObject(const PerformanceEntry& entry, Local<Object> obj) {
env->name_string(),
String::NewFromUtf8(isolate,
entry.name().c_str(),
- String::kNormalString),
- attr).FromJust();
+ v8::NewStringType::kNormal)
+ .ToLocalChecked(),
+ attr)
+ .FromJust();
obj->DefineOwnProperty(context,
FIXED_ONE_BYTE_STRING(isolate, "entryType"),
String::NewFromUtf8(isolate,
entry.type().c_str(),
- String::kNormalString),
- attr).FromJust();
+ v8::NewStringType::kNormal)
+ .ToLocalChecked(),
+ attr)
+ .FromJust();
obj->DefineOwnProperty(context,
FIXED_ONE_BYTE_STRING(isolate, "startTime"),
Number::New(isolate, entry.startTime()),