Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 668407b7a5b90fdf39bbc850a98b278981f63f76
https://github.com/WebKit/WebKit/commit/668407b7a5b90fdf39bbc850a98b278981f63f76
Author: Yusuke Suzuki <[email protected]>
Date: 2025-07-28 (Mon, 28 Jul 2025)
Changed paths:
A JSTests/stress/set-iteration-reference.js
M Source/JavaScriptCore/runtime/JSCell.h
M Source/JavaScriptCore/runtime/SetPrototype.cpp
Log Message:
-----------
[JSC] Do not use reference for changing cursor
https://bugs.webkit.org/show_bug.cgi?id=296576
rdar://156890845
Reviewed by Mark Lam.
Using reference is not the same to using pointer. It copies when
assignment happens. We should use a pointer instead of a reference in
new Set#intersection implementation.
* JSTests/stress/set-iteration-reference.js: Added.
(shouldBe):
(main.try.set intersection):
(main.set catch):
* Source/JavaScriptCore/runtime/JSCell.h:
* Source/JavaScriptCore/runtime/SetPrototype.cpp:
(JSC::fastSetIntersection):
(JSC::JSC_DEFINE_HOST_FUNCTION):
Canonical link: https://commits.webkit.org/297952@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes