Skip to content

Conversation

@kateinoigakukun
Copy link
Member

Motivation:

  • TS2Swift currently emits typed throws as throws (JSException), which is not the desired Swift spelling.

Overview:

  • Emit typed throws without the extra space (throws(JSException)) in TS2Swift output.
  • Refresh TS2Swift snapshots and regenerated BridgeJS bindings to match the new spelling.

…Exception)`) via `renderEffects` in `Plugins/BridgeJS/Sources/TS2Swift/JavaScript/src/processor.js`.

- Updated the TS2Swift snapshot to match the new syntax in `Plugins/BridgeJS/Sources/TS2Swift/JavaScript/test/__snapshots__/ts2swift.test.js.snap`.
- Skill used: `bridgejs-development` (BridgeJS generator/test workflow).

Tests not run (not requested). Next: `swift test --package-path ./Plugins/BridgeJS --filter TS2Swift` or `make unittest SWIFT_SDK_ID=DEVELOPMENT-SNAPSHOT-2025-11-03-a-wasm32-unknown-wasip1`.
…th ./Plugins/BridgeJS`; TS2Swift snapshots now expect `throws(JSException)`.

- Regenerated BridgeJS-generated Swift bindings with `./Utilities/bridge-js-generate.sh`, updating `Benchmarks/Sources/Generated/BridgeJS.Macros.swift`, `Examples/PlayBridgeJS/Sources/PlayBridgeJS/Generated/BridgeJS.Macros.swift`, and `Tests/BridgeJSRuntimeTests/Generated/BridgeJS.Macros.swift`.
- Skill used: `bridgejs-development`.

Tests: `UPDATE_SNAPSHOTS=1 swift test --package-path ./Plugins/BridgeJS` (pass). Next: `make unittest SWIFT_SDK_ID=DEVELOPMENT-SNAPSHOT-2025-11-03-a-wasm32-unknown-wasip1` if you want full runtime coverage.
@kateinoigakukun kateinoigakukun merged commit edabb97 into main Feb 3, 2026
11 checks passed
@kateinoigakukun kateinoigakukun deleted the katei/aad7-bridgejs-fix-ts2 branch February 3, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants