You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BridgeJS: Support @JS struct on return type of async exported @JS func #753
@JSFunctionfunc Promise_resolve_<mangled Foo>(_ promise:JSObject, _ value:Foo)throws(JSException)@JSFunction func Promise_reject(_ promise:JSObject, _ value:JSValue)throws(JSException)@_expose(wasm,"bjs_getFoo")@_cdecl("bjs_getFoo")
public func _bjs_getFoo()->Int32{#if arch(wasm32)return_bjs_makePromise(resolve:Promise_resolve_<mangled Foo> reject: Promise_reject){returnawaitgetFoo()}#elsefatalError("Only available on WebAssembly")#endif}
Actual Output:
@_expose(wasm,"bjs_getFoo")@_cdecl("bjs_getFoo")publicfunc _bjs_getFoo()->Int32{#if arch(wasm32)letret=JSPromise.async{returnawaitgetFoo().jsValue
}.jsObject
return ret.bridgeJSLowerReturn()#elsefatalError("Only available on WebAssembly")#endif}
Activity
krodak commentedon Jun 9, 2026
#758 closed