Skip to content

Commit e46a46a

Browse files
aduh95targos
authored andcommitted
inspector: refactor to use more primordials
PR-URL: #36356 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent dd705ad commit e46a46a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/inspector.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const {
44
JSONParse,
55
JSONStringify,
6-
Map,
6+
SafeMap,
77
Symbol,
88
} = primordials;
99

@@ -48,7 +48,7 @@ class Session extends EventEmitter {
4848
super();
4949
this[connectionSymbol] = null;
5050
this[nextIdSymbol] = 1;
51-
this[messageCallbacksSymbol] = new Map();
51+
this[messageCallbacksSymbol] = new SafeMap();
5252
}
5353

5454
connect() {

0 commit comments

Comments
 (0)