We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55631f4 commit 144aeeaCopy full SHA for 144aeea
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