| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -215,18 +215,6 @@ static void RemoveGarbageCollectionTracking( | |||
| 215 | 215 | GarbageCollectionCleanupHook(env); | |
| 216 | 216 | } | |
| 217 | 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 | 218 | // Notify a custom PerformanceEntry to observers | |
| 231 | 219 | void Notify(const FunctionCallbackInfo<Value>& args) { | |
| 232 | 220 | Environment* env = Environment::GetCurrent(args); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments