Skip to content

Commit 542aae4

Browse files
Sebastien-Ahkrintargos
authored andcommitted
lib: replace WeakSet global by the primordials
PR-URL: #31157 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 0b8eaf2 commit 542aae4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/.eslintrc.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ rules:
3131
message: "Use `const { Symbol } = primordials;` instead of the global."
3232
- name: WeakMap
3333
message: "Use `const { WeakMap } = primordials;` instead of the global."
34+
- name: WeakSet
35+
message: "Use `const { WeakSet } = primordials;` instead of the global."
3436
no-restricted-syntax:
3537
# Config copied from .eslintrc.js
3638
- error

lib/repl.js

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const {
5656
Promise,
5757
PromiseRace,
5858
Symbol,
59+
WeakSet,
5960
} = primordials;
6061

6162
const {

0 commit comments

Comments
 (0)