From 2df79893bf1aa3f752365e496303d1662e715ae7 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. --- 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');