From 15c2491e7348522a79032402948a5b6e3b771252 Mon Sep 17 00:00:00 2001 From: Jayasankar Date: Mon, 19 Nov 2018 06:10:27 +0530 Subject: [PATCH] src: elevate v8 namespaces of node_trace_events.cc PR-URL: https://github.com/nodejs/node/pull/24469 Reviewed-By: James M Snell Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil --- src/node_trace_events.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node_trace_events.cc b/src/node_trace_events.cc index 44cf31ff2e02d5..94ed1ec5a1de5b 100644 --- a/src/node_trace_events.cc +++ b/src/node_trace_events.cc @@ -14,6 +14,7 @@ using v8::Context; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::Local; +using v8::NewStringType; using v8::Object; using v8::String; using v8::Value; @@ -91,7 +92,7 @@ void GetEnabledCategories(const FunctionCallbackInfo& args) { args.GetReturnValue().Set( String::NewFromUtf8(env->isolate(), categories.c_str(), - v8::NewStringType::kNormal, + NewStringType::kNormal, categories.size()).ToLocalChecked()); } }