lib: add Int16Array primordials

PR-URL: https://github.com/nodejs/node/pull/31205
Reviewed-By: Michaël Zasso <targos@protonmail.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>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
Sebastien Ahkrin
2020-01-06 03:35:57 +01:00
committed by Michaël Zasso
parent 81f6dd66fe
commit 178efdf5a2
2 changed files with 3 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ rules:
message: "Use `const { Error } = primordials;` instead of the global."
- name: Float32Array
message: "Use `const { Float32Array } = primordials;` instead of the global."
- name: Int16Array
message: "Use `const { Int16Array } = primordials;` instead of the global."
- name: JSON
message: "Use `const { JSON } = primordials;` instead of the global."
- name: Map

View File

@@ -13,6 +13,7 @@ const {
ErrorPrototypeToString,
Float32Array,
FunctionPrototypeToString,
Int16Array,
JSONStringify,
Map,
MapPrototype,