From 869cd531e943a71e0dd38780a8c458cd611a2567 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 PR-URL: https://github.com/nodejs/node/pull/31157 Reviewed-By: Ruben Bridgewater Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: David Carlier Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat --- lib/.eslintrc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index 1a2e41c6df7a9f..982d899744d9d7 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