Skip to content

Commit f544f7a

Browse files
Sebastien-AhkrinBethGriggs
authored andcommitted
lib: replace Float64Array global with primordials
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]>
1 parent fca324e commit f544f7a

File tree

6 files changed

+7
-0
lines changed

6 files changed

+7
-0
lines changed

lib/.eslintrc.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ rules:
2323
message: "Use `const { Error } = primordials;` instead of the global."
2424
- name: Float32Array
2525
message: "Use `const { Float32Array } = primordials;` instead of the global."
26+
- name: Float64Array
27+
message: "Use `const { Float64Array } = primordials;` instead of the global."
2628
- name: Int16Array
2729
message: "Use `const { Int16Array } = primordials;` instead of the global."
2830
- name: JSON

lib/internal/buffer.js

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
const {
44
BigInt,
55
Float32Array,
6+
Float64Array,
67
MathFloor,
78
Number,
89
} = primordials;

lib/internal/process/per_thread.js

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
const {
88
ArrayIsArray,
99
BigUint64Array,
10+
Float64Array,
1011
NumberMAX_SAFE_INTEGER,
1112
ObjectDefineProperties,
1213
ObjectDefineProperty,

lib/internal/util/inspect.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const {
1212
DatePrototypeToString,
1313
ErrorPrototypeToString,
1414
Float32Array,
15+
Float64Array,
1516
FunctionPrototypeCall,
1617
FunctionPrototypeToString,
1718
Int16Array,

lib/internal/worker.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
const {
66
ArrayIsArray,
7+
Float64Array,
78
JSONStringify,
89
MathMax,
910
ObjectCreate,

lib/os.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
'use strict';
2323

2424
const {
25+
Float64Array,
2526
ObjectDefineProperties,
2627
SymbolToPrimitive,
2728
} = primordials;

0 commit comments

Comments
 (0)