From b8bd276c43aa0c059e6b638e86ec64bfe95aeba2 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 --- 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 04084df3fd9d57..4b74a13f65091b 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: Boolean message: "Use `const { Boolean } = primordials;` instead of the global." - name: Error diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index 89b9c7b8b9df03..38eee7110bf349 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -3,6 +3,7 @@ const { Array, ArrayIsArray, + BigInt64Array, BigIntPrototypeValueOf, BooleanPrototypeValueOf, DatePrototypeGetTime,