lib: replace Int32Array global with primordials

PR-URL: https://github.com/nodejs/node/pull/35397
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Pranshu Srivastava <rexagod@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
This commit is contained in:
Sebastien Ahkrin 2020-01-06 03:39:26 +01:00 committed by Michaël Zasso
parent 34b7b47849
commit 6883c8d30b
No known key found for this signature in database
GPG Key ID: 770F7A9A5AE15600
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -16,6 +16,7 @@ const {
FunctionPrototypeCall,
FunctionPrototypeToString,
Int16Array,
Int32Array,
JSONStringify,
Map,
MapPrototype,