Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a9e86615c78fea731f69b5fbbab13a3337e2aea0
https://github.com/WebKit/WebKit/commit/a9e86615c78fea731f69b5fbbab13a3337e2aea0
Author: Yijia Huang <[email protected]>
Date: 2026-02-02 (Mon, 02 Feb 2026)
Changed paths:
A JSTests/wasm/debugger/resources/swift-wasm/do-catch-throw/Package.swift
A
JSTests/wasm/debugger/resources/swift-wasm/do-catch-throw/Sources/test/test.swift
A JSTests/wasm/debugger/resources/swift-wasm/do-catch-throw/build.sh
A
JSTests/wasm/debugger/resources/swift-wasm/do-catch-throw/do-catch-throw.wasm
A JSTests/wasm/debugger/resources/swift-wasm/do-catch-throw/main.js
M JSTests/wasm/debugger/tests/tests.py
Log Message:
-----------
[JSC][WASM][Debugger] Add Swift WASM do-catch exception handling test case
https://bugs.webkit.org/show_bug.cgi?id=306782
rdar://169455288
Reviewed by Mark Lam.
Add test coverage for Swift exception handling in WebAssembly with
do-catch-throw patterns. Includes tests for:
- Direct throw with conditional logic (testDoThrowCatch)
- Nested do-catch with exception rethrowing (testDoThrowCatchNested)
Tests for function call throws are disabled due to Swift WASM compiler
bug that generates incorrect DWARF line numbers in catch block prologues.
* JSTests/wasm/debugger/tests/tests.py:
(DoCatchThrowTestCase): Added test case for Swift exception handling.
* JSTests/wasm/debugger/resources/swift-wasm/do-catch-throw: Added.
(Package.swift): Swift package configuration.
(build.sh): Build script to compile Swift to WASM.
(main.js): JavaScript test harness.
(do-catch-throw.wasm): Compiled WebAssembly binary.
(Sources/test/test.swift): Swift source with exception handling tests.
Canonical link: https://commits.webkit.org/306655@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications