From a2c4244e3d72deb9c0e560ed9b2fb21b3698b7e0 Mon Sep 17 00:00:00 2001 From: Sebastien Ahkrin Date: Sun, 5 Jan 2020 13:28:09 +0100 Subject: [PATCH] lib: replace BigInt64Array global by the primordials MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/31193 Reviewed-By: Anna Henningsen Reviewed-By: Michaƫl Zasso Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Rich Trott --- lib/.eslintrc.yaml | 2 ++ lib/internal/util/inspect.js | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index 1c925a9511e..0592218e570 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -13,6 +13,8 @@ rules: message: "Use `const { Array } = primordials;` instead of the global." - name: BigInt message: "Use `const { BigInt } = primordials;` instead of the global." + - name: BigInt64Array + message: "Use `const { BigInt64Array } = primordials;` instead of the global." - name: BigUint64Array message: "Use `const { BigUint64Array } = primordials;` instead of the global." - name: Boolean diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index a4f4862d9dd..b09b86f44fb 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -3,6 +3,7 @@ const { Array, ArrayIsArray, + BigInt64Array, BigIntPrototypeValueOf, BigUint64Array, BooleanPrototypeValueOf,