We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GetName()
1 parent b011a49 commit 066d9d4Copy full SHA for 066d9d4
src/node_perf.cc
@@ -215,18 +215,6 @@ static void RemoveGarbageCollectionTracking(
215
GarbageCollectionCleanupHook(env);
216
}
217
218
-// Gets the name of a function
219
-inline Local<Value> GetName(Local<Function> fn) {
220
- Local<Value> val = fn->GetDebugName();
221
- if (val.IsEmpty() || val->IsUndefined()) {
222
- Local<Value> boundFunction = fn->GetBoundFunction();
223
- if (!boundFunction.IsEmpty() && !boundFunction->IsUndefined()) {
224
- val = GetName(boundFunction.As<Function>());
225
- }
226
227
- return val;
228
-}
229
-
230
// Notify a custom PerformanceEntry to observers
231
void Notify(const FunctionCallbackInfo<Value>& args) {
232
Environment* env = Environment::GetCurrent(args);
0 commit comments