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
@JSFunctionfuncPromise_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}.jsObjectreturnret.bridgeJSLowerReturn()#elsefatalError("Only available on WebAssembly")#endif}
Activity
krodak commentedon Jun 9, 2026
#758 closed