Commit 1f3e61e
Improve error case in Base64 encode w/ large input
`result` can be an empty string even when `onerror` does not fire if the
input is too large to represent as a string. In that case, the function
was returning undefined, which would certainly error any caller.
Instead throw an explicit error and document that callers are expected
to handle if the input is large.
Bug: 436482118
Change-Id: I18330da4b17ff76310cd3141075a86d3df8718b2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7455444
Auto-Submit: Connor Clark <cjamcl@chromium.org>
Commit-Queue: Connor Clark <cjamcl@chromium.org>
Commit-Queue: Paul Irish <paulirish@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>1 parent d1b4db0 commit 1f3e61e
File tree
2 files changed
+20
-6
lines changed- front_end
- core/common
- panels/timeline
2 files changed
+20
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | | - | |
| 42 | + | |
39 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
40 | 52 | | |
41 | 53 | | |
42 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1564 | 1564 | | |
1565 | 1565 | | |
1566 | 1566 | | |
1567 | | - | |
1568 | 1567 | | |
1569 | 1568 | | |
1570 | 1569 | | |
1571 | 1570 | | |
1572 | 1571 | | |
1573 | 1572 | | |
1574 | 1573 | | |
1575 | | - | |
1576 | | - | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
1577 | 1580 | | |
1578 | | - | |
1579 | 1581 | | |
1580 | 1582 | | |
1581 | | - | |
| 1583 | + | |
1582 | 1584 | | |
1583 | 1585 | | |
1584 | 1586 | | |
| |||
0 commit comments