FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

inspector: refactor to use more primordials · nodejs/node@e46a46a · GitHub

/ node Public

Commit e46a46a

Browse files
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 dd705ad commit e46a46a

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] = new Map();
51+
this[messageCallbacksSymbol] = new SafeMap();
5252
}
5353

5454
connect() {

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL