Skip to content

Commit

Permalink
lib: replace Int32Array global with primordials
Browse files Browse the repository at this point in the history
PR-URL: #35397
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Jiawen Geng <[email protected]>
Reviewed-By: Pranshu Srivastava <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Ujjwal Sharma <[email protected]>
  • Loading branch information
Sebastien-Ahkrin authored and BethGriggs committed Oct 13, 2020
1 parent f544f7a commit d6ba4ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/.eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/internal/util/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const {
FunctionPrototypeCall,
FunctionPrototypeToString,
Int16Array,
Int32Array,
JSONStringify,
Map,
MapPrototype,
Expand Down

0 comments on commit d6ba4ec

Please sign in to comment.