| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bed1b93 commit 1cf087d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -381,9 +381,7 @@ class TracingChannel { | |||
| 381 | 381 | } | |
| 382 | 382 | ||
| 383 | 383 | const callback = ArrayPrototypeAt(args, position); | |
| 384 | - if (typeof callback !== 'function') { | ||
| 385 | - throw new ERR_INVALID_ARG_TYPE('callback', ['function'], callback); | ||
| 386 | - } | ||
| 384 | + validateFunction(callback, 'callback'); | ||
| 387 | 385 | ArrayPrototypeSplice(args, position, 1, wrappedCallback); | |
| 388 | 386 | ||
| 389 | 387 | return start.runStores(context, () => { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments