Skip to content

Commit e955606

Browse files
Sebastien-AhkrinBethGriggs
authored andcommitted
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>
1 parent d5d0744 commit e955606

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/.eslintrc.yaml

Lines changed: 2 additions & 0 deletions
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

0 commit comments

Comments
 (0)