From 76123b9ae72cc26b1a921edd845145040b7c60d2 Mon Sep 17 00:00:00 2001 From: Sebastien Ahkrin Date: Mon, 6 Jan 2020 03:35:57 +0100 Subject: [PATCH] lib: add Int16Array primordials MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/31205 Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Rich Trott Reviewed-By: Michael Dawson --- 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..97cc264c8ff804 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: Int16Array + message: "Use `const { Int16Array } = 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 be3c497c6869c0..40ed7ef75637b0 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -13,6 +13,7 @@ const { ErrorPrototypeToString, Float32Array, FunctionPrototypeToString, + Int16Array, JSONStringify, Map, MapPrototype,