Commit a4fdb1a
authored
lib,test: do not hardcode Buffer.kMaxLength
V8 will soon support typed arrays as large as the maximum array buffer
length. This patch replaces hardcoded values related to
Buffer.kMaxLength with the actual constant.
It also fixes a test that was passing by accident.
Refs: v8/v8@44b2995
PR-URL: #49876
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>1 parent cc725a6 commit a4fdb1aCopy full SHA for a4fdb1a
File tree
Expand file treeCollapse file tree
5 files changed
+25
-25
lines changedOpen diff view settings
Filter options
- lib/internal
- test/parallel
Expand file treeCollapse file tree
5 files changed
+25
-25
lines changedOpen diff view settings
Collapse file
+5-3Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
| 27 | + |
| 28 | + |
| 29 | + |
27 | 30 | |
28 | 31 | |
29 | 32 | |
| ||
62 | 65 | |
63 | 66 | |
64 | 67 | |
65 | | - |
66 | 68 | |
67 | 69 | |
68 | 70 | |
| ||
160 | 162 | |
161 | 163 | |
162 | 164 | |
163 | | - |
164 | | - |
| 165 | + |
| 166 | + |
165 | 167 | |
166 | 168 | |
167 | 169 | |
|
Collapse file
test/parallel/test-blob-buffer-too-large.js
Copy file name to clipboardExpand all lines: test/parallel/test-blob-buffer-too-large.js+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
| 6 | + |
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
| 12 | + |
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | | - |
| 16 | + |
17 | 17 | |
18 | 18 | |
19 | 19 | |
|
Collapse file
test/parallel/test-buffer-alloc.js
Copy file name to clipboardExpand all lines: test/parallel/test-buffer-alloc.js+6-3Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
8 | 11 | |
9 | 12 | |
10 | 13 | |
11 | 14 | |
12 | | - |
13 | | - |
| 15 | + |
| 16 | + |
14 | 17 | |
15 | 18 | |
16 | 19 | |
|
Collapse file
test/parallel/test-buffer-over-max-length.js
Copy file name to clipboardExpand all lines: test/parallel/test-buffer-over-max-length.js-10Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | 15 | |
22 | 16 | |
23 | 17 | |
24 | 18 | |
25 | 19 | |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
Collapse file
test/parallel/test-buffer-tostring-rangeerror.js
Copy file name to clipboardExpand all lines: test/parallel/test-buffer-tostring-rangeerror.js+11-6Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | | - |
| 4 | + |
| 5 | + |
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
10 | 15 | |
11 | | - |
| 16 | + |
12 | 17 | |
13 | | - |
14 | | - |
| 18 | + |
| 19 | + |
15 | 20 | |
16 | 21 | |
17 | 22 | |
|
0 commit comments