Skip to content

Commit d3f0dd2

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 7cb84fd commit d3f0dd2

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
@@ -22,6 +22,7 @@ if (!hasInspector)
2222
throw new ERR_INSPECTOR_NOT_AVAILABLE();
2323

2424
const EventEmitter = require('events');
25+
const { queueMicrotask } = require('internal/process/task_queues');
2526
const { validateString } = require('internal/validators');
2627
const { isMainThread } = require('worker_threads');
2728

0 commit comments

Comments
 (0)