From ba19313e1e047007bae6a62ff541a00f16ac160f Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 21 Nov 2020 20:35:33 +0100 Subject: [PATCH] inspector: refactor to use more primordials MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/36356 Reviewed-By: Rich Trott Reviewed-By: Michaƫl Zasso --- lib/inspector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/inspector.js b/lib/inspector.js index 60640bc1fb6456..007822ffa20f0d 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() {