Skip to content

Commit a8bf7db

Browse files
committed
inspector: do not access queueMicrotask from global
Grab it from the internal module where it's defined instead. PR-URL: #30732 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 4aac424 commit a8bf7db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/inspector.js

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if (!hasInspector)
1919
throw new ERR_INSPECTOR_NOT_AVAILABLE();
2020

2121
const EventEmitter = require('events');
22+
const { queueMicrotask } = require('internal/process/task_queues');
2223
const { validateString } = require('internal/validators');
2324
const { isMainThread } = require('worker_threads');
2425

0 commit comments

Comments
 (0)