Skip to content

Commit 1ed138c

Browse files
lib: replace WeakSet global by the primordials
1 parent e9695d9 commit 1ed138c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/.eslintrc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ rules:
2929
message: "Use `const { Reflect } = primordials;` instead of the global."
3030
- name: Symbol
3131
message: "Use `const { Symbol } = primordials;` instead of the global."
32+
- name: WeakSet
33+
message: "Use `const { WeakSet } = primordials;` instead of the global."
3234
no-restricted-syntax:
3335
# Config copied from .eslintrc.js
3436
- error

lib/repl.js

Lines changed: 1 addition & 0 deletions
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)