diff --git a/src/node_trace_events.cc b/src/node_trace_events.cc index f06648b24492fd..d214cd0911b154 100644 --- a/src/node_trace_events.cc +++ b/src/node_trace_events.cc @@ -15,6 +15,7 @@ using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::Int32; using v8::Local; +using v8::NewStringType; using v8::Object; using v8::String; using v8::Value; @@ -94,7 +95,7 @@ void GetEnabledCategories(const FunctionCallbackInfo& args) { args.GetReturnValue().Set( String::NewFromUtf8(env->isolate(), categories.c_str(), - v8::NewStringType::kNormal, + NewStringType::kNormal, categories.size()).ToLocalChecked()); } }