From eca22d5565ced362b35c8f053b18f3b87f591a8d Mon Sep 17 00:00:00 2001 From: Sebastien Ahkrin Date: Mon, 6 Jan 2020 03:59:50 +0100 Subject: [PATCH] lib: add Uint16Array primordials MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/31210 Reviewed-By: Michaƫl Zasso Reviewed-By: David Carlier Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Rich Trott --- 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..1c925a9511ef36 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -41,6 +41,8 @@ rules: message: "Use `const { Set } = primordials;` instead of the global." - name: Symbol message: "Use `const { Symbol } = primordials;` instead of the global." + - name: Uint16Array + message: "Use `const { Uint16Array } = primordials;` instead of the global." - name: WeakMap message: "Use `const { WeakMap } = primordials;` instead of the global." - name: WeakSet diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index 21d088c5a9f98b..a4f4862d9dd882 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -45,6 +45,7 @@ const { SymbolPrototypeValueOf, SymbolIterator, SymbolToStringTag, + Uint16Array, uncurryThis, } = primordials;