From a8bf7db0407157e32a3808b79ed4dd207d94017e 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 2f29506b91bc0e..b6a29f4d747dee 100644 --- a/lib/inspector.js +++ b/lib/inspector.js @@ -19,6 +19,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');