src: elevate v8 namespaces of node_trace_events.cc
PR-URL: https://github.com/nodejs/node/pull/24469 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
8e4688a2e0
commit
15c2491e73
@ -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<Value>& args) {
|
||||
args.GetReturnValue().Set(
|
||||
String::NewFromUtf8(env->isolate(),
|
||||
categories.c_str(),
|
||||
v8::NewStringType::kNormal,
|
||||
NewStringType::kNormal,
|
||||
categories.size()).ToLocalChecked());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user