Bug 310802
| Summary: | [JSC] Fix test262 failure: test/staging/sm/TypedArray/iterator-next-with-detached.js | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tetsuharu Ohzeki [UTC+9] <tetsuharu.ohzeki> |
| Component: | JavaScriptCore | Assignee: | Tetsuharu Ohzeki [UTC+9] <tetsuharu.ohzeki> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Tetsuharu Ohzeki [UTC+9]
testcase: https://github.com/tc39/test262/blob/5c8206929d81b2d3d727ca6aac56c18358c8d790/test/staging/sm/TypedArray/iterator-next-with-detached.js
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Tetsuharu Ohzeki [UTC+9]
Pull request: https://github.com/WebKit/WebKit/pull/61406
EWS
Committed 310292@main (6117e70109ac): <https://commits.webkit.org/310292@main>
Reviewed commits have been landed. Closing PR #61406 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/173759106>