From 1ed138cb44dbe98f587114b2e9fecce99b491c8c Mon Sep 17 00:00:00 2001 From: Sebastien Ahkrin Date: Thu, 2 Jan 2020 14:48:55 +0100 Subject: [PATCH] lib: replace WeakSet global by the primordials --- lib/.eslintrc.yaml | 2 ++ lib/repl.js | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index 8299e79a00eba0..438c5e213794c0 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -29,6 +29,8 @@ rules: message: "Use `const { Reflect } = primordials;` instead of the global." - name: Symbol message: "Use `const { Symbol } = 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 {