From 67314232279b5ba39ecc57d20d572c63499e905f Mon Sep 17 00:00:00 2001 From: Sebastien Ahkrin Date: Mon, 6 Jan 2020 03:42:18 +0100 Subject: [PATCH] lib: add Int8Array 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 0592218e5705a7..ee65c190ddfa1e 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -23,6 +23,8 @@ rules: message: "Use `const { Error } = primordials;` instead of the global." - name: Float32Array message: "Use `const { Float32Array } = primordials;` instead of the global." + - name: Int8Array + message: "Use `const { Int8Array } = primordials;` instead of the global." - name: JSON message: "Use `const { JSON } = primordials;` instead of the global." - name: Map diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index fbc0a4ee2d6b6e..913044237ffb7d 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -13,6 +13,7 @@ const { ErrorPrototypeToString, Float32Array, FunctionPrototypeToString, + Int8Array, JSONStringify, Map, MapPrototype,