Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33018ab commit 7e12af0Copy full SHA for 7e12af0
lib/inspector.js
@@ -20,7 +20,6 @@ if (!hasInspector)
20
21
const EventEmitter = require('events');
22
const { validateString } = require('internal/validators');
23
-const util = require('util');
24
const { isMainThread } = require('worker_threads');
25
26
const {
@@ -86,7 +85,7 @@ class Session extends EventEmitter {
86
85
87
post(method, params, callback) {
88
validateString(method, 'method');
89
- if (!callback && util.isFunction(params)) {
+ if (!callback && typeof params === 'function') {
90
callback = params;
91
params = null;
92
}
0 commit comments