Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1ed138c

Browse files
committedJan 4, 2020
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

+2
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

+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)