From d3f0dd21484715ef961d126e7dbdb88a5cf01120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sat, 30 Nov 2019 14:20:48 +0100 Subject: [PATCH] inspector: do not access queueMicrotask from global Grab it from the internal module where it's defined instead. PR-URL: https://github.com/nodejs/node/pull/30732 Reviewed-By: Colin Ihrig Reviewed-By: Anto Aravinth Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell --- lib/inspector.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/inspector.js b/lib/inspector.js index 107500938377ce..b2bad040ceae79 100644 --- a/lib/inspector.js +++ b/lib/inspector.js @@ -22,6 +22,7 @@ if (!hasInspector) throw new ERR_INSPECTOR_NOT_AVAILABLE(); const EventEmitter = require('events'); +const { queueMicrotask } = require('internal/process/task_queues'); const { validateString } = require('internal/validators'); const { isMainThread } = require('worker_threads');