Repository navigation
Commit 6117e70
[JSC] Fix test262 failure: test/staging/sm/TypedArray/iterator-next-with-detached.js
https://bugs.webkit.org/show_bug.cgi?id=310802
Reviewed by Sosuke Suzuki.
If source is detached TypedArray and the iterator has been completed,
`%ArrayIteratorPrototype%.next()` should return `{ done: true }`
rather than throwing `TypeError` with describes the source TypedArray is detached.
This complies _step 5_ of _23.1.5.2.1 %ArrayIteratorPrototype%.next()_ in the spec.
https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/builtins/ArrayIteratorPrototype.js:
Canonical link: https://commits.webkit.org/310292@main1 parent 4c59b7a commit 6117e70
2 files changed
Lines changed: 19 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | 938 | | |
942 | 939 | | |
943 | 940 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
39 | | - | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
45 | | - | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
0 commit comments