WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
297194
[JSC] Fix duplicate `iterator.next` property access in `Set#union`
https://bugs.webkit.org/show_bug.cgi?id=297194
Summary
[JSC] Fix duplicate `iterator.next` property access in `Set#union`
Sosuke Suzuki
Reported
2025-08-10 08:30:05 PDT
`Set#union` C++ implementation added by
https://commits.webkit.org/298316@main
was accessing `iterator.next` twice instead of once, causing test262 failures[1]. This patch fixes by using `iteratorDirect` with `forEachInIterationRecord` to access the property only once. [1]:
https://build.webkit.org/#/builders/1232/builds/9714
Attachments
Add attachment
proposed patch, testcase, etc.
Sosuke Suzuki
Comment 1
2025-08-10 08:32:36 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/49198
EWS
Comment 2
2025-08-10 10:51:30 PDT
Committed
298486@main
(a56c848d924c): <
https://commits.webkit.org/298486@main
> Reviewed commits have been landed. Closing PR #49198 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2025-08-10 10:52:12 PDT
<
rdar://problem/157986659
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug