Skip to content

Commit ba19313

Browse files
aduh95targos
authored andcommitted
inspector: refactor to use more primordials
PR-URL: #36356 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 98806da commit ba19313

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/inspector.js‎

Lines changed: 2 additions & 2 deletions
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]=newMap();
51+
this[messageCallbacksSymbol]=newSafeMap();
5252
}
5353

5454
connect(){

0 commit comments

Comments
 (0)