Skip to content
Permalink
Browse files

lib: replace WeakSet global by the primordials

PR-URL: #31157
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
Sebastien-Ahkrin authored and targos committed Jan 2, 2020
1 parent 0b8eaf2 commit 542aae4bf0652c6b37bf57dc7d0d58573d491410
Showing with 3 additions and 0 deletions.
  1. +2 −0 lib/.eslintrc.yaml
  2. +1 −0 lib/repl.js
@@ -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
@@ -56,6 +56,7 @@ const {
Promise,
PromiseRace,
Symbol,
WeakSet,
} = primordials;

const {

0 comments on commit 542aae4

Please sign in to comment.
You can’t perform that action at this time.