Commit 379260e
test: replace internals with public API
Remove instances where `--expose-internals` is used to gain access to
buffer.kStringMaxLength. The property is availalble without a flag. It
is undocumented but the same as the documented
`buffer.constants.MAX_STRING_LENGTH` so use that. (We even have a test
that confirms that they are the same value.)
PR-URL: #25309
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 2014eba commit 379260eCopy full SHA for 379260e
File tree
Expand file treeCollapse file tree
9 files changed
+10
-27
lines changedOpen diff view settings
Filter options
- test
- addons/stringbytes-external-exceed-max
- sequential
Expand file treeCollapse file tree
9 files changed
+10
-27
lines changedOpen diff view settings
Collapse file
test/addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max.js
Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | 2 | |
4 | 3 | |
5 | | - |
6 | 4 | |
7 | 5 | |
8 | 6 | |
| ||
12 | 10 | |
13 | 11 | |
14 | 12 | |
15 | | - |
| 13 | + |
16 | 14 | |
17 | 15 | |
18 | 16 | |
|
Collapse file
test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii.js
Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | 2 | |
4 | 3 | |
5 | | - |
6 | 4 | |
7 | 5 | |
8 | 6 | |
| ||
11 | 9 | |
12 | 10 | |
13 | 11 | |
14 | | - |
| 12 | + |
15 | 13 | |
16 | 14 | |
17 | 15 | |
|
Collapse file
test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64.js
Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | 2 | |
4 | 3 | |
5 | | - |
6 | 4 | |
7 | 5 | |
8 | 6 | |
| ||
11 | 9 | |
12 | 10 | |
13 | 11 | |
14 | | - |
| 12 | + |
15 | 13 | |
16 | 14 | |
17 | 15 | |
|
Collapse file
test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary.js
Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary.js+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
6 | 5 | |
7 | 6 | |
8 | 7 | |
| ||
12 | 11 | |
13 | 12 | |
14 | 13 | |
15 | | - |
| 14 | + |
16 | 15 | |
17 | 16 | |
18 | 17 | |
|
Collapse file
test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex.js
Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | 2 | |
4 | 3 | |
5 | | - |
6 | 4 | |
7 | 5 | |
8 | 6 | |
| ||
11 | 9 | |
12 | 10 | |
13 | 11 | |
14 | | - |
| 12 | + |
15 | 13 | |
16 | 14 | |
17 | 15 | |
|
Collapse file
test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8.js
Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | 2 | |
4 | 3 | |
5 | | - |
6 | 4 | |
7 | 5 | |
8 | 6 | |
| ||
12 | 10 | |
13 | 11 | |
14 | 12 | |
15 | | - |
| 13 | + |
16 | 14 | |
17 | 15 | |
18 | 16 | |
|
Collapse file
test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js
Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | 2 | |
4 | 3 | |
5 | | - |
6 | 4 | |
7 | 5 | |
8 | 6 | |
| ||
12 | 10 | |
13 | 11 | |
14 | 12 | |
15 | | - |
| 13 | + |
16 | 14 | |
17 | 15 | |
18 | 16 | |
|
Collapse file
test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js
Copy file name to clipboardExpand all lines: test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | 2 | |
4 | 3 | |
5 | | - |
6 | 4 | |
7 | 5 | |
8 | 6 | |
| ||
11 | 9 | |
12 | 10 | |
13 | 11 | |
14 | | - |
| 12 | + |
15 | 13 | |
16 | 14 | |
17 | 15 | |
|
Collapse file
test/sequential/test-fs-readfile-tostring-fail.js
Copy file name to clipboardExpand all lines: test/sequential/test-fs-readfile-tostring-fail.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | 2 | |
4 | 3 | |
5 | | - |
6 | 4 | |
7 | 5 | |
8 | 6 | |
| ||
11 | 9 | |
12 | 10 | |
13 | 11 | |
14 | | - |
| 12 | + |
15 | 13 | |
16 | 14 | |
17 | 15 | |
|
0 commit comments