Skip to content

Commit

Permalink
inspector: refactor to use more primordials
Browse files Browse the repository at this point in the history
PR-URL: #36356
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
aduh95 authored and targos committed Jun 11, 2021
1 parent 98806da commit ba19313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/inspector.js
Expand Up @@ -3,7 +3,7 @@
const {
JSONParse,
JSONStringify,
Map,
SafeMap,
Symbol,
} = primordials;

Expand Down Expand Up @@ -48,7 +48,7 @@ class Session extends EventEmitter {
super();
this[connectionSymbol] = null;
this[nextIdSymbol] = 1;
this[messageCallbacksSymbol] = new Map();
this[messageCallbacksSymbol] = new SafeMap();
}

connect() {
Expand Down

0 comments on commit ba19313

Please sign in to comment.