mirror of https://github.com/nodejs/node.git
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:
parent
34b7b47849
commit
6883c8d30b
|
@ -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
|
||||
|
|
|
@ -16,6 +16,7 @@ const {
|
|||
FunctionPrototypeCall,
|
||||
FunctionPrototypeToString,
|
||||
Int16Array,
|
||||
Int32Array,
|
||||
JSONStringify,
|
||||
Map,
|
||||
MapPrototype,
|
||||
|
|
Loading…
Reference in New Issue