Commit 095cd5f
committed
stream: reject primitive values in ReadableStream.from
Reject non-object inputs before looking up iterator methods in
ReadableStream.from(). This matches the Web IDL async sequence
conversion and prevents primitive strings from being accepted through
property-access boxing.
This fixes the WPT test:
"ReadableStream.from throws on invalid iterables; specifically a string".
Refs: https://webidl.spec.whatwg.org/#es-sequence
Signed-off-by: Jeong SeokChan <starp321@naver.com>1 parent 4605cf5 commit 095cd5f
2 files changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1438 | 1438 | | |
1439 | 1439 | | |
1440 | 1440 | | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1441 | 1446 | | |
1442 | 1447 | | |
1443 | 1448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 11 | | |
19 | 12 | | |
20 | 13 | | |
| |||
0 commit comments