| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 55631f4 commit 144aeea
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,6 @@ if (!hasInspector) | |||
| 20 | 20 | ||
| 21 | 21 | const EventEmitter = require('events'); | |
| 22 | 22 | const { validateString } = require('internal/validators'); | |
| 23 | - const util = require('util'); | ||
| 24 | 23 | const { isMainThread } = require('worker_threads'); | |
| 25 | 24 | ||
| 26 | 25 | const { | |
@@ -86,7 +85,7 @@ class Session extends EventEmitter { | |||
| 86 | 85 | ||
| 87 | 86 | post(method, params, callback) { | |
| 88 | 87 | validateString(method, 'method'); | |
| 89 | - if (!callback && util.isFunction(params)) { | ||
| 88 | + if (!callback && typeof params === 'function') { | ||
| 90 | 89 | callback = params; | |
| 91 | 90 | params = null; | |
| 92 | 91 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments