lib: add Uint16Array primordials

PR-URL: https://github.com/nodejs/node/pull/31210
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Sebastien Ahkrin
2020-01-06 03:59:50 +01:00
committed by ZYSzys
parent b0a7621577
commit eca22d5565
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -45,6 +45,7 @@ const {
SymbolPrototypeValueOf,
SymbolIterator,
SymbolToStringTag,
Uint16Array,
uncurryThis,
} = primordials;