diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index 04084df3fd9d57..e6174a99bc753d 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -35,6 +35,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 89b9c7b8b9df03..4e0a030de2643f 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -42,6 +42,7 @@ const { SymbolPrototypeValueOf, SymbolIterator, SymbolToStringTag, + Uint16Array, uncurryThis, } = primordials;