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