We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GetName()
1 parent fac56db commit dc09286Copy full SHA for dc09286
src/node_perf.cc
@@ -236,18 +236,6 @@ static void RemoveGarbageCollectionTracking(
236
GarbageCollectionCleanupHook(env);
237
}
238
239
-// Gets the name of a function
240
-inline Local<Value> GetName(Local<Function> fn) {
241
- Local<Value> val = fn->GetDebugName();
242
- if (val.IsEmpty() || val->IsUndefined()) {
243
- Local<Value> boundFunction = fn->GetBoundFunction();
244
- if (!boundFunction.IsEmpty() && !boundFunction->IsUndefined()) {
245
- val = GetName(boundFunction.As<Function>());
246
- }
247
248
- return val;
249
-}
250
-
251
// Notify a custom PerformanceEntry to observers
252
void Notify(const FunctionCallbackInfo<Value>& args) {
253
Environment* env = Environment::GetCurrent(args);
0 commit comments