summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2019-11-30 14:20:48 +0100
committerMichaël Zasso <targos@protonmail.com>2019-12-04 08:50:25 +0100
commitb9cacfc999c005b5aeefc1d0ba0f0ae1651686b1 (patch)
tree098ae2d881e98ba72b076906270971d2f66e462e /lib
parentd2d5c970158d01a4da8e644da3202a2666414d91 (diff)
downloadandroid-node-v8-b9cacfc999c005b5aeefc1d0ba0f0ae1651686b1.tar.gz
android-node-v8-b9cacfc999c005b5aeefc1d0ba0f0ae1651686b1.tar.bz2
android-node-v8-b9cacfc999c005b5aeefc1d0ba0f0ae1651686b1.zip
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 <cjihrig@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/inspector.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/inspector.js b/lib/inspector.js
index 1075009383..b2bad040ce 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');