Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 67abaaa35c4d826409cb716d68bc3e05995e8888
https://github.com/WebKit/WebKit/commit/67abaaa35c4d826409cb716d68bc3e05995e8888
Author: Keith Miller <[email protected]>
Date: 2026-01-15 (Thu, 15 Jan 2026)
Changed paths:
M Source/JavaScriptCore/interpreter/Interpreter.cpp
M Source/JavaScriptCore/jit/JITOperations.cpp
M Source/JavaScriptCore/llint/LLIntSlowPaths.cpp
M Source/JavaScriptCore/runtime/ExceptionScope.h
M Source/JavaScriptCore/runtime/FunctionConstructor.cpp
M Source/JavaScriptCore/runtime/IteratorOperations.cpp
M Source/JavaScriptCore/runtime/JSInternalPromiseConstructor.cpp
M Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp
M Source/JavaScriptCore/runtime/JSPromise.cpp
M Source/JavaScriptCore/runtime/JSPromiseConstructor.cpp
M Source/JavaScriptCore/runtime/JSRemoteFunction.cpp
M Source/JavaScriptCore/runtime/ShadowRealmPrototype.cpp
M Source/JavaScriptCore/runtime/TemporalInstant.cpp
M Source/JavaScriptCore/runtime/ThrowScope.h
M Source/JavaScriptCore/tools/JSDollarVM.cpp
M Source/JavaScriptCore/wasm/WasmIPIntSlowPaths.cpp
M Source/JavaScriptCore/wasm/WasmOperations.cpp
M Source/WebCore/Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp
M Source/WebCore/Modules/identity/CredentialRequestCoordinator.cpp
M Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp
M Source/WebCore/Modules/streams/ReadableStreamDefaultReader.cpp
M Source/WebCore/Modules/streams/ReadableStreamToSharedBufferSink.cpp
M Source/WebCore/Modules/streams/StreamTeeUtilities.cpp
M Source/WebCore/bindings/js/InternalReadableStream.cpp
M Source/WebCore/bindings/js/InternalWritableStream.cpp
M Source/WebCore/bindings/js/JSCallbackData.cpp
M Source/WebCore/bindings/js/JSDOMGlobalObject.cpp
M Source/WebCore/bindings/js/JSExecState.h
M Source/WebCore/bindings/js/ScriptController.cpp
M Source/WebCore/dom/TrustedType.cpp
Log Message:
-----------
ThrowScopes should not be able to clear termination exceptions
https://bugs.webkit.org/show_bug.cgi?id=305496
rdar://168161400
Reviewed by Yusuke Suzuki.
Right now when folks call clearException on a ThrowScope they often end
up unintentionally clearing termination exceptions. This is a bit of a
footgun.
With this change it's now only possible to tryClearException, which
fails when there's a termination exception pending. Long term, the goal
is to have all "interior" code use ThrowScopes as they have to support
propagating termination exceptions. I fixed a few places in this patch
such as IteratorOperations and will fix the remaining ones when renaming
CatchScope in a follow up change.
No new tests, no behavior change.
Canonical link: https://commits.webkit.org/305675@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications