Bug 280927
| Summary: | [JSC] `GroupBy` should throw when the number of iterations exceeds 2^53 - 1 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sosuke Suzuki <sosuke> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sosuke Suzuki
According to the spec[1], `GroupBy` should throw a TypeError when the number of iterations exceeds
2^53-1. Although it takes a very long time to reach this condition, it is not impossible. However,
the current JSC does not throw a TypeError in such cases.
[1]: https://tc39.es/ecma262/#sec-groupby
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sosuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/34732
EWS
Committed 284739@main (2da72919849f): <https://commits.webkit.org/284739@main>
Reviewed commits have been landed. Closing PR #34732 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/137372322>