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 7f589eebe33c1c..f5e96f66aab448 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -45,6 +45,7 @@ const { SymbolPrototypeValueOf, SymbolIterator, SymbolToStringTag, + Uint16Array, uncurryThis, } = primordials;