Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 69c48a20e920dcd83d19071407f1aba1e46390b6
https://github.com/WebKit/WebKit/commit/69c48a20e920dcd83d19071407f1aba1e46390b6
Author: Yusuke Suzuki <[email protected]>
Date: 2026-04-29 (Wed, 29 Apr 2026)
Changed paths:
M Source/JavaScriptCore/builtins/AsyncIteratorPrototype.js
M Source/JavaScriptCore/builtins/BuiltinNames.h
M Source/JavaScriptCore/bytecode/LinkTimeConstant.h
M Source/JavaScriptCore/runtime/JSGlobalObject.cpp
Log Message:
-----------
[JSC] Clean up AsyncIterator asyncDispose
https://bugs.webkit.org/show_bug.cgi?id=313345
rdar://175616055
Reviewed by Keith Miller.
1. Make promiseReturnUndefinedOnFulfilled C++ function instead. It is
just returning an undefined.
2. Clean up asyncDispose code. Using @newResolvedPromise /
@newRejectedPromise helpers, and coverting entire region with
try-catch instead.
* Source/JavaScriptCore/builtins/AsyncIteratorPrototype.js:
(overriddenName.string_appeared_here.asyncDispose):
(linkTimeConstant.promiseReturnUndefinedOnFulfilled): Deleted.
* Source/JavaScriptCore/builtins/BuiltinNames.h:
* Source/JavaScriptCore/bytecode/LinkTimeConstant.h:
* Source/JavaScriptCore/runtime/JSGlobalObject.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
(JSC::JSGlobalObject::init):
Canonical link: https://commits.webkit.org/312269@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications