Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f7833ac

Browse filesBrowse files
Sebastien-AhkrinMylesBorins
authored andcommitted
lib: replace Float32Array global by the primordials
PR-URL: #31195 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent aafeab8 commit f7833ac
Copy full SHA for f7833ac

File tree

Expand file treeCollapse file tree

3 files changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+4
-0
lines changed
Open diff view settings
Collapse file

‎lib/.eslintrc.yaml‎

Copy file name to clipboardExpand all lines: lib/.eslintrc.yaml
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ rules:
1919
message: "Use `const { Boolean } = primordials;` instead of the global."
2020
- name: Error
2121
message: "Use `const { Error } = primordials;` instead of the global."
22+
- name: Float32Array
23+
message: "Use `const { Float32Array } = primordials;` instead of the global."
2224
- name: JSON
2325
message: "Use `const { JSON } = primordials;` instead of the global."
2426
- name: Map
Collapse file

‎lib/internal/buffer.js‎

Copy file name to clipboardExpand all lines: lib/internal/buffer.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const {
44
BigInt,
5+
Float32Array,
56
MathFloor,
67
Number,
78
} = primordials;
Collapse file

‎lib/internal/util/inspect.js‎

Copy file name to clipboardExpand all lines: lib/internal/util/inspect.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const {
1010
DatePrototypeToISOString,
1111
DatePrototypeToString,
1212
ErrorPrototypeToString,
13+
Float32Array,
1314
JSONStringify,
1415
Map,
1516
MapPrototype,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.