@@ -7189,6 +7189,20 @@ public func _bjs_throwsWithJSObjectResult() -> Int32 {
71897189 #endif
71907190}
71917191
7192+ @_expose(wasm, "bjs_zeroArgAsyncThrows")
7193+ @_cdecl("bjs_zeroArgAsyncThrows")
7194+ public func _bjs_zeroArgAsyncThrows() -> Int32 {
7195+ #if arch(wasm32)
7196+ let __bjs_capture = 0
7197+ return _bjs_makePromise(resolve: Promise_resolve_SS, reject: Promise_reject) { [__bjs_capture] () async throws(JSException) -> String in
7198+ _ = __bjs_capture
7199+ return try await zeroArgAsyncThrows()
7200+ }
7201+ #else
7202+ fatalError("Only available on WebAssembly")
7203+ #endif
7204+ }
7205+
71927206@_expose(wasm, "bjs_asyncRoundTripVoid")
71937207@_cdecl("bjs_asyncRoundTripVoid")
71947208public func _bjs_asyncRoundTripVoid() -> Int32 {
@@ -11403,6 +11417,28 @@ func _$Promise_reject(_ promise: JSObject, _ value: JSValue) throws(JSException)
1140311417 if let error = _swift_js_take_exception() { throw error }
1140411418}
1140511419
11420+ @JSFunction func Promise_resolve_SS(_ promise: JSObject, _ value: String) throws(JSException)
11421+
11422+ #if arch(wasm32)
11423+ @_extern(wasm, module: "bjs", name: "promise_resolve_BridgeJSRuntimeTests_SS")
11424+ fileprivate func promise_resolve_BridgeJSRuntimeTests_SS_extern(_ promise: Int32, _ valueBytes: Int32, _ valueLength: Int32) -> Void
11425+ #else
11426+ fileprivate func promise_resolve_BridgeJSRuntimeTests_SS_extern(_ promise: Int32, _ valueBytes: Int32, _ valueLength: Int32) -> Void {
11427+ fatalError("Only available on WebAssembly")
11428+ }
11429+ #endif
11430+ @inline(never) fileprivate func promise_resolve_BridgeJSRuntimeTests_SS(_ promise: Int32, _ valueBytes: Int32, _ valueLength: Int32) -> Void {
11431+ return promise_resolve_BridgeJSRuntimeTests_SS_extern(promise, valueBytes, valueLength)
11432+ }
11433+
11434+ func _$Promise_resolve_SS(_ promise: JSObject, _ value: String) throws(JSException) -> Void {
11435+ let promiseValue = promise.bridgeJSLowerParameter()
11436+ value.bridgeJSWithLoweredParameter { (valueBytes, valueLength) in
11437+ promise_resolve_BridgeJSRuntimeTests_SS(promiseValue, valueBytes, valueLength)
11438+ }
11439+ if let error = _swift_js_take_exception() { throw error }
11440+ }
11441+
1140611442@JSFunction func Promise_resolve_y(_ promise: JSObject) throws(JSException)
1140711443
1140811444#if arch(wasm32)
@@ -11507,28 +11543,6 @@ func _$Promise_resolve_Sb(_ promise: JSObject, _ value: Bool) throws(JSException
1150711543 if let error = _swift_js_take_exception() { throw error }
1150811544}
1150911545
11510- @JSFunction func Promise_resolve_SS(_ promise: JSObject, _ value: String) throws(JSException)
11511-
11512- #if arch(wasm32)
11513- @_extern(wasm, module: "bjs", name: "promise_resolve_BridgeJSRuntimeTests_SS")
11514- fileprivate func promise_resolve_BridgeJSRuntimeTests_SS_extern(_ promise: Int32, _ valueBytes: Int32, _ valueLength: Int32) -> Void
11515- #else
11516- fileprivate func promise_resolve_BridgeJSRuntimeTests_SS_extern(_ promise: Int32, _ valueBytes: Int32, _ valueLength: Int32) -> Void {
11517- fatalError("Only available on WebAssembly")
11518- }
11519- #endif
11520- @inline(never) fileprivate func promise_resolve_BridgeJSRuntimeTests_SS(_ promise: Int32, _ valueBytes: Int32, _ valueLength: Int32) -> Void {
11521- return promise_resolve_BridgeJSRuntimeTests_SS_extern(promise, valueBytes, valueLength)
11522- }
11523-
11524- func _$Promise_resolve_SS(_ promise: JSObject, _ value: String) throws(JSException) -> Void {
11525- let promiseValue = promise.bridgeJSLowerParameter()
11526- value.bridgeJSWithLoweredParameter { (valueBytes, valueLength) in
11527- promise_resolve_BridgeJSRuntimeTests_SS(promiseValue, valueBytes, valueLength)
11528- }
11529- if let error = _swift_js_take_exception() { throw error }
11530- }
11531-
1153211546@JSFunction func Promise_resolve_7GreeterC(_ promise: JSObject, _ value: Greeter) throws(JSException)
1153311547
1153411548#if arch(wasm32)
0 commit comments