Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0655a1df8268f1dd0e66e7bddda80bcc147b5ce4
https://github.com/WebKit/WebKit/commit/0655a1df8268f1dd0e66e7bddda80bcc147b5ce4
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2026-04-05 (Sun, 05 Apr 2026)
Changed paths:
M Source/JavaScriptCore/API/JSValue.mm
M Source/JavaScriptCore/API/tests/testapi.cpp
M Source/JavaScriptCore/wasm/WasmConstExprGenerator.cpp
M Source/JavaScriptCore/wasm/WasmIPIntGenerator.cpp
M Source/JavaScriptCore/wasm/WasmModule.cpp
M Source/JavaScriptCore/wasm/WasmOMGIRGenerator.cpp
M Source/JavaScriptCore/wasm/WasmParser.h
M Source/JavaScriptCore/wasm/WasmStreamingCompiler.cpp
M Source/WTF/WTF.xcodeproj/project.pbxproj
M Source/WTF/wtf/CMakeLists.txt
M Source/WTF/wtf/CrossThreadCopier.h
M Source/WTF/wtf/Expected.h
M Source/WTF/wtf/NativePromise.h
M Source/WTF/wtf/StdLibExtras.h
R Source/WTF/wtf/Unexpected.h
M Source/WebCore/dom/ExceptionOr.h
M Source/WebCore/loader/EmptyClients.cpp
M Source/WebKit/GPUProcess/webrtc/UserMediaCaptureManagerProxy.cpp
M Source/WebKit/Platform/IPC/ArgumentCoders.h
M Source/WebKit/Platform/IPC/Connection.h
M Source/WebKit/Shared/Extensions/WebExtensionUtilities.h
M Source/WebKit/UIProcess/Automation/BidiBrowsingContextAgent.cpp
M Source/WebKit/UIProcess/WebProcessProxy.h
M Tools/TestWebKitAPI/Tests/WTF/Expected.cpp
M Tools/TestWebKitAPI/Tests/WTF/NativePromise.cpp
Log Message:
-----------
Drop WTF::Unexpected in favor of std::unexpected
https://bugs.webkit.org/show_bug.cgi?id=311511
rdar://174104942
Reviewed by Anne van Kesteren.
This bug follows up from webkit.org/b/311015 and webkit.org/b/311333.
Now that WTF::Unexpected is just an alias for std::unexpected, we can go
one step further and just adopt the standard namesake.
In doing so, we also drop the wtf/Unexpected.h header. We elect to keep
the makeUnexpected helper. It may be possible to remove in a forthcoming
patch, but there is no need to inflate this patch's scope. We move the
helper to StdLibExtras.h.
* Source/JavaScriptCore/API/JSValue.mm:
(performPropertyOperation):
* Source/JavaScriptCore/API/tests/testapi.cpp:
(TestAPI::evaluateScript):
(TestAPI::callFunction):
* Source/JavaScriptCore/wasm/WasmConstExprGenerator.cpp:
* Source/JavaScriptCore/wasm/WasmIPIntGenerator.cpp:
* Source/JavaScriptCore/wasm/WasmModule.cpp:
(JSC::Wasm::makeValidationResult):
* Source/JavaScriptCore/wasm/WasmOMGIRGenerator.cpp:
* Source/JavaScriptCore/wasm/WasmParser.h:
* Source/JavaScriptCore/wasm/WasmStreamingCompiler.cpp:
(JSC::Wasm::StreamingCompiler::didComplete):
* Source/WTF/WTF.xcodeproj/project.pbxproj:
* Source/WTF/wtf/CrossThreadCopier.h:
* Source/WTF/wtf/Expected.h:
* Source/WTF/wtf/NativePromise.h:
* Source/WTF/wtf/StdLibExtras.h:
(WTF::makeUnexpected):
* Source/WTF/wtf/Unexpected.h: Removed.
* Source/WebCore/dom/ExceptionOr.h:
* Source/WebCore/loader/EmptyClients.cpp:
* Source/WebKit/GPUProcess/webrtc/UserMediaCaptureManagerProxy.cpp:
(WebKit::UserMediaCaptureManagerProxy::takePhoto):
(WebKit::UserMediaCaptureManagerProxy::getPhotoCapabilities):
(WebKit::UserMediaCaptureManagerProxy::getPhotoSettings):
* Source/WebKit/Platform/IPC/ArgumentCoders.h:
* Source/WebKit/Platform/IPC/Connection.h:
* Source/WebKit/Shared/Extensions/WebExtensionUtilities.h:
(WebKit::toWebExtensionError):
* Source/WebKit/UIProcess/Automation/BidiBrowsingContextAgent.cpp:
* Source/WebKit/UIProcess/WebProcessProxy.h:
* Tools/TestWebKitAPI/Tests/WTF/Expected.cpp:
(std::experimental::fundamentals_v3::operator<<):
(TestWebKitAPI::TEST(WTF_Expected, Unexpected)):
(TestWebKitAPI::TEST(WTF_Expected, comparison)):
(TestWebKitAPI::TEST(WTF_Expected, unique_ptr)):
* Tools/TestWebKitAPI/Tests/WTF/NativePromise.cpp:
(TestWebKitAPI::TEST(NativePromise, ExpectedWithString)):
Canonical link: https://commits.webkit.org/310608@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications