BridgeJS: Enforce throws(JSException) on @JS protocol methods by krodak · Pull Request #563 · swiftwasm/JavaScriptKit
@kateinoigakukun my bad, now added exception checking for protocol wrapper methods with new BridgeContext.exportSwiftProtocol case.
The issue was that protocol wrappers call into JavaScript (like .importTS), so they indeed need exception checking that I missed. But they also need to support Swift heap objects as parameters/returns (like .exportSwift), hence new type 🙏🏻
For now this only applies to methods. Property accessors will be updated in a follow-up PR.