From fe53967b0f913e96ba419b4e029934563739e80e 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 717f7cca105b65..87e66bb4d441fe 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 3f2f75b909663b..4c4da0974c5f82 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -3,6 +3,7 @@ const { Array, ArrayIsArray, + BigInt64Array, BigIntPrototypeValueOf, BigUint64Array, BooleanPrototypeValueOf,