Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e684d9f25a7ba8a871e9075e7c6ef823e4d47f82
https://github.com/WebKit/WebKit/commit/e684d9f25a7ba8a871e9075e7c6ef823e4d47f82
Author: Yusuke Suzuki <[email protected]>
Date: 2025-12-12 (Fri, 12 Dec 2025)
Changed paths:
M Source/JavaScriptCore/runtime/JSPromise.cpp
Log Message:
-----------
[JSC] Skip `then` look up for iterator result object
https://bugs.webkit.org/show_bug.cgi?id=304050
rdar://166364012
Reviewed by Sosuke Suzuki.
There is a similar optimization in V8. This patch skips `then` look up
for iterator result object since this can be used frequently for async
generator results.
* Source/JavaScriptCore/runtime/JSPromise.cpp:
(JSC::isIteratorResultObject):
(JSC::JSPromise::resolvePromise):
(JSC::JSPromise::resolveWithoutPromise):
(JSC::JSPromise::resolveWithInternalMicrotask):
Canonical link: https://commits.webkit.org/304355@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications