Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1f4e4caab01bd73eab2694f0e079830900fd9d57
https://github.com/WebKit/WebKit/commit/1f4e4caab01bd73eab2694f0e079830900fd9d57
Author: Shu-yu Guo <[email protected]>
Date: 2026-05-29 (Fri, 29 May 2026)
Changed paths:
A JSTests/stress/string-at-cse-array-mode.js
M Source/JavaScriptCore/dfg/DFGClobberize.h
Log Message:
-----------
[JSC] StringAt should respect arrayMode in CSE
https://bugs.webkit.org/show_bug.cgi?id=311976
rdar://174422482
Reviewed by Yusuke Suzuki.
String.prototype.at returns a string when the index is in-bounds and undefined
when the index is out-of-bounds. Since these are different types, StringAts
with different arrayModes should not be CSE'd.
Test: JSTests/stress/string-at-cse-array-mode.js
* JSTests/stress/string-at-cse-array-mode.js: Added.
(opt):
* Source/JavaScriptCore/dfg/DFGClobberize.h:
(JSC::DFG::clobberize):
Originally-landed-as: 305413.642@rapid/safari-7624.2.5.110-branch
(b2284d1674da). rdar://176059025
Canonical link: https://commits.webkit.org/314148@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications