Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7ca190a441db7b5829ea823e04888e67b4bc9b26
https://github.com/WebKit/WebKit/commit/7ca190a441db7b5829ea823e04888e67b4bc9b26
Author: Yusuke Suzuki <[email protected]>
Date: 2025-06-06 (Fri, 06 Jun 2025)
Changed paths:
M Source/JavaScriptCore/runtime/OrderedHashTable.h
Log Message:
-----------
[JSC] Map#getOrInsert should always recompute index
https://bugs.webkit.org/show_bug.cgi?id=294141
rdar://152735330
Reviewed by Daniel Liu and Yijia Huang.
It is possible that callback may insert an entry with the same key.
map.getOrInsert("key", () => {
map.set("key", value);
return 42;
});
So just checking obsolete storage is not enough. For now, we always
compute the index. This is tested via test262.
* Source/JavaScriptCore/runtime/OrderedHashTable.h:
(JSC::OrderedHashMap::getOrInsert):
Canonical link: https://commits.webkit.org/295948@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