From aafeab8cdbef35b0debc80de8c316f08573e326c Mon Sep 17 00:00:00 2001 From: Sebastien Ahkrin Date: Sun, 5 Jan 2020 13:59:28 +0100 Subject: [PATCH] lib: replace BigUInt64Array 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/31194 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/process/per_thread.js | 1 + lib/internal/util/inspect.js | 1 + 3 files changed, 4 insertions(+) diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index 04084df3fd9d57..17d3551b86adbb 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: BigUint64Array + message: "Use `const { BigUint64Array } = primordials;` instead of the global." - name: Boolean message: "Use `const { Boolean } = primordials;` instead of the global." - name: Error diff --git a/lib/internal/process/per_thread.js b/lib/internal/process/per_thread.js index a1dd4442089502..5cb55d74939302 100644 --- a/lib/internal/process/per_thread.js +++ b/lib/internal/process/per_thread.js @@ -6,6 +6,7 @@ const { ArrayIsArray, + BigUint64Array, NumberMAX_SAFE_INTEGER, ObjectDefineProperties, ObjectDefineProperty, diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index 69ca4c9f88d62b..4f0951c14f121c 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -4,6 +4,7 @@ const { Array, ArrayIsArray, BigIntPrototypeValueOf, + BigUint64Array, BooleanPrototypeValueOf, DatePrototypeGetTime, DatePrototypeToISOString,