From 3aa7adc5cb7eb67cb6b657705f76cc372f6e4587 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 --- 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() {