GeezerVison is showing github.com — lib: replace Float32Array global by the primordials · nodejs/node@f7833ac
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: lib/.eslintrc.yaml +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
19 | 19 | message: "Use `const { Boolean } = primordials;` instead of the global." |
20 | 20 | - name: Error |
21 | 21 | message: "Use `const { Error } = primordials;` instead of the global." |
| 22 | + - name: Float32Array |
| 23 | + message: "Use `const { Float32Array } = primordials;` instead of the global." |
22 | 24 | - name: JSON |
23 | 25 | message: "Use `const { JSON } = primordials;` instead of the global." |
24 | 26 | - name: Map |
|
Collapse file
Copy file name to clipboardExpand all lines: lib/internal/buffer.js +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 |
|
3 | 3 | const { |
4 | 4 | BigInt, |
| 5 | + Float32Array, |
5 | 6 | MathFloor, |
6 | 7 | Number, |
7 | 8 | } = primordials; |
|
Collapse file
Copy file name to clipboardExpand all lines: lib/internal/util/inspect.js +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,6 +10,7 @@ const { |
10 | 10 | DatePrototypeToISOString, |
11 | 11 | DatePrototypeToString, |
12 | 12 | ErrorPrototypeToString, |
| 13 | + Float32Array, |
13 | 14 | JSONStringify, |
14 | 15 | Map, |
15 | 16 | MapPrototype, |
|