Uh oh!
There was an error while loading. Please reload this page.
BridgeJS: Enforce throws(JSException) on @JS protocol methods - #563
Conversation
I think we need to enable the exception check emitted by |
krodak
commented
Feb 3, 2026
@kateinoigakukun my bad, now added exception checking for protocol wrapper methods with new The issue was that protocol wrappers call into JavaScript (like |
Uh oh!
There was an error while loading. Please reload this page.
1c4d924 to
905f4eaCompareThere was a problem hiding this comment.
Could you remove this snapshot file? It's now moved under BridgeJSCodegenTests.
BridgeJS: Enforce throws(JSException) on @js protocol methods
905f4ea to
d4da0e3CompareUh oh!
There was an error while loading. Please reload this page.
Overview
throws(JSException)on@JS protocolmethods, matching the import side (@JSFunction) behaviorTest updates
Protocol.swifttest input: Addedthrows(JSException)to all protocol methodsExportAPITests.swift: UpdatedDataProcessorprotocol methods with throwsDocumentation
Exporting-Swift-Protocols.mdwith throws requirement and examplesMotivation
This partially addresses the inconsistency where
@JSFunction(import side) requiresthrows(JSException)but@JS protocolmethods (export side) didn't.Properties will be covered in separate PR 🙏🏻