diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index f3a0d9f1d3e5c9..b84a0ef6350196 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -31,6 +31,8 @@ rules: message: "Use `const { Symbol } = primordials;` instead of the global." - name: WeakMap message: "Use `const { WeakMap } = primordials;` instead of the global." + - name: WeakSet + message: "Use `const { WeakSet } = primordials;` instead of the global." no-restricted-syntax: # Config copied from .eslintrc.js - error diff --git a/lib/repl.js b/lib/repl.js index d9efb8c5ece523..6acaf8baccd8ee 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -56,6 +56,7 @@ const { Promise, PromiseRace, Symbol, + WeakSet, } = primordials; const {