Commit c079abe
stream: improve views validation on
- This throws if the view is zero-length when there is an active reader
when using `ReadableStreamBYOBRequest.respondWithNewView()`.
- By doing that, we can get all tests passed in
`readable-byte-streams/bad-buffers-and-views.any.js`.
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com
PR-URL: #44155
Refs: https://streams.spec.whatwg.org/#readable-byte-stream-controller-respond-with-new-view
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>BYOBRequest
1 parent 8c1fe86 commit c079abeCopy full SHA for c079abe
File tree
Expand file treeCollapse file tree
2 files changed
+9
-8
lines changedOpen diff view settings
Filter options
- lib/internal/webstreams
- test/wpt/status
Expand file treeCollapse file tree
2 files changed
+9
-8
lines changedOpen diff view settings
Collapse file
lib/internal/webstreams/readablestream.js
Copy file name to clipboardExpand all lines: lib/internal/webstreams/readablestream.js+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2516 | 2516 | |
2517 | 2517 | |
2518 | 2518 | |
| 2519 | + |
| 2520 | + |
| 2521 | + |
| 2522 | + |
| 2523 | + |
| 2524 | + |
| 2525 | + |
| 2526 | + |
| 2527 | + |
2519 | 2528 | |
2520 | 2529 | |
2521 | 2530 | |
|
Collapse file
test/wpt/status/streams.json
Copy file name to clipboardExpand all lines: test/wpt/status/streams.json-8Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | 7 | |
16 | 8 | |
0 commit comments