diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2020-11-21 20:35:33 +0100 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2020-12-10 17:06:03 +0000 |
commit | 806588361a203df049fc821973b72c0248c948c7 (patch) | |
tree | 4b292f5048cea8f359a69eb219b48dae03efed27 | |
parent | 5dd58d069fd31e778d050a2ffc7af8e64af30095 (diff) | |
download | node-new-806588361a203df049fc821973b72c0248c948c7.tar.gz |
inspector: refactor to use more primordials
PR-URL: https://github.com/nodejs/node/pull/36356
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
-rw-r--r-- | lib/inspector.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inspector.js b/lib/inspector.js index 60640bc1fb..007822ffa2 100644 --- a/lib/inspector.js +++ b/lib/inspector.js @@ -3,7 +3,7 @@ const { JSONParse, JSONStringify, - Map, + SafeMap, Symbol, } = primordials; @@ -48,7 +48,7 @@ class Session extends EventEmitter { super(); this[connectionSymbol] = null; this[nextIdSymbol] = 1; - this[messageCallbacksSymbol] = new Map(); + this[messageCallbacksSymbol] = new SafeMap(); } connect() { |