@@ -11239,6 +11239,32 @@ func _$jsAsyncRoundTripString(_ v: String) async throws(JSException) -> String {
1123911239 return resolved.string!
1124011240}
1124111241
11242+ #if arch(wasm32)
11243+ @_extern(wasm, module: "BridgeJSRuntimeTests", name: "bjs_fetchWeatherData")
11244+ fileprivate func bjs_fetchWeatherData_extern(_ cityBytes: Int32, _ cityLength: Int32) -> Int32
11245+ #else
11246+ fileprivate func bjs_fetchWeatherData_extern(_ cityBytes: Int32, _ cityLength: Int32) -> Int32 {
11247+ fatalError("Only available on WebAssembly")
11248+ }
11249+ #endif
11250+ @inline(never) fileprivate func bjs_fetchWeatherData(_ cityBytes: Int32, _ cityLength: Int32) -> Int32 {
11251+ return bjs_fetchWeatherData_extern(cityBytes, cityLength)
11252+ }
11253+
11254+ func _$fetchWeatherData(_ city: String) async throws(JSException) -> WeatherData {
11255+ let ret0 = city.bridgeJSWithLoweredParameter { (cityBytes, cityLength) in
11256+ let ret = bjs_fetchWeatherData(cityBytes, cityLength)
11257+ return ret
11258+ }
11259+ let ret = ret0
11260+ if let error = _swift_js_take_exception() {
11261+ throw error
11262+ }
11263+ let promise = JSPromise(unsafelyWrapping: JSObject(id: UInt32(bitPattern: ret)))
11264+ let resolved = try await promise.value
11265+ return WeatherData(unsafelyWrapping: resolved.object!)
11266+ }
11267+
1124211268#if arch(wasm32)
1124311269@_extern(wasm, module: "BridgeJSRuntimeTests", name: "bjs__jsWeirdFunction")
1124411270fileprivate func bjs__jsWeirdFunction_extern() -> Float64
@@ -11417,6 +11443,133 @@ func _$JsGreeter_changeName(_ self: JSObject, _ name: String) throws(JSException
1141711443 }
1141811444}
1141911445
11446+ #if arch(wasm32)
11447+ @_extern(wasm, module: "BridgeJSRuntimeTests", name: "bjs_WeatherData_temperature_get")
11448+ fileprivate func bjs_WeatherData_temperature_get_extern(_ self: Int32) -> Float64
11449+ #else
11450+ fileprivate func bjs_WeatherData_temperature_get_extern(_ self: Int32) -> Float64 {
11451+ fatalError("Only available on WebAssembly")
11452+ }
11453+ #endif
11454+ @inline(never) fileprivate func bjs_WeatherData_temperature_get(_ self: Int32) -> Float64 {
11455+ return bjs_WeatherData_temperature_get_extern(self)
11456+ }
11457+
11458+ #if arch(wasm32)
11459+ @_extern(wasm, module: "BridgeJSRuntimeTests", name: "bjs_WeatherData_description_get")
11460+ fileprivate func bjs_WeatherData_description_get_extern(_ self: Int32) -> Int32
11461+ #else
11462+ fileprivate func bjs_WeatherData_description_get_extern(_ self: Int32) -> Int32 {
11463+ fatalError("Only available on WebAssembly")
11464+ }
11465+ #endif
11466+ @inline(never) fileprivate func bjs_WeatherData_description_get(_ self: Int32) -> Int32 {
11467+ return bjs_WeatherData_description_get_extern(self)
11468+ }
11469+
11470+ #if arch(wasm32)
11471+ @_extern(wasm, module: "BridgeJSRuntimeTests", name: "bjs_WeatherData_humidity_get")
11472+ fileprivate func bjs_WeatherData_humidity_get_extern(_ self: Int32) -> Float64
11473+ #else
11474+ fileprivate func bjs_WeatherData_humidity_get_extern(_ self: Int32) -> Float64 {
11475+ fatalError("Only available on WebAssembly")
11476+ }
11477+ #endif
11478+ @inline(never) fileprivate func bjs_WeatherData_humidity_get(_ self: Int32) -> Float64 {
11479+ return bjs_WeatherData_humidity_get_extern(self)
11480+ }
11481+
11482+ #if arch(wasm32)
11483+ @_extern(wasm, module: "BridgeJSRuntimeTests", name: "bjs_WeatherData_temperature_set")
11484+ fileprivate func bjs_WeatherData_temperature_set_extern(_ self: Int32, _ newValue: Float64) -> Void
11485+ #else
11486+ fileprivate func bjs_WeatherData_temperature_set_extern(_ self: Int32, _ newValue: Float64) -> Void {
11487+ fatalError("Only available on WebAssembly")
11488+ }
11489+ #endif
11490+ @inline(never) fileprivate func bjs_WeatherData_temperature_set(_ self: Int32, _ newValue: Float64) -> Void {
11491+ return bjs_WeatherData_temperature_set_extern(self, newValue)
11492+ }
11493+
11494+ #if arch(wasm32)
11495+ @_extern(wasm, module: "BridgeJSRuntimeTests", name: "bjs_WeatherData_description_set")
11496+ fileprivate func bjs_WeatherData_description_set_extern(_ self: Int32, _ newValueBytes: Int32, _ newValueLength: Int32) -> Void
11497+ #else
11498+ fileprivate func bjs_WeatherData_description_set_extern(_ self: Int32, _ newValueBytes: Int32, _ newValueLength: Int32) -> Void {
11499+ fatalError("Only available on WebAssembly")
11500+ }
11501+ #endif
11502+ @inline(never) fileprivate func bjs_WeatherData_description_set(_ self: Int32, _ newValueBytes: Int32, _ newValueLength: Int32) -> Void {
11503+ return bjs_WeatherData_description_set_extern(self, newValueBytes, newValueLength)
11504+ }
11505+
11506+ #if arch(wasm32)
11507+ @_extern(wasm, module: "BridgeJSRuntimeTests", name: "bjs_WeatherData_humidity_set")
11508+ fileprivate func bjs_WeatherData_humidity_set_extern(_ self: Int32, _ newValue: Float64) -> Void
11509+ #else
11510+ fileprivate func bjs_WeatherData_humidity_set_extern(_ self: Int32, _ newValue: Float64) -> Void {
11511+ fatalError("Only available on WebAssembly")
11512+ }
11513+ #endif
11514+ @inline(never) fileprivate func bjs_WeatherData_humidity_set(_ self: Int32, _ newValue: Float64) -> Void {
11515+ return bjs_WeatherData_humidity_set_extern(self, newValue)
11516+ }
11517+
11518+ func _$WeatherData_temperature_get(_ self: JSObject) throws(JSException) -> Double {
11519+ let selfValue = self.bridgeJSLowerParameter()
11520+ let ret = bjs_WeatherData_temperature_get(selfValue)
11521+ if let error = _swift_js_take_exception() {
11522+ throw error
11523+ }
11524+ return Double.bridgeJSLiftReturn(ret)
11525+ }
11526+
11527+ func _$WeatherData_description_get(_ self: JSObject) throws(JSException) -> String {
11528+ let selfValue = self.bridgeJSLowerParameter()
11529+ let ret = bjs_WeatherData_description_get(selfValue)
11530+ if let error = _swift_js_take_exception() {
11531+ throw error
11532+ }
11533+ return String.bridgeJSLiftReturn(ret)
11534+ }
11535+
11536+ func _$WeatherData_humidity_get(_ self: JSObject) throws(JSException) -> Double {
11537+ let selfValue = self.bridgeJSLowerParameter()
11538+ let ret = bjs_WeatherData_humidity_get(selfValue)
11539+ if let error = _swift_js_take_exception() {
11540+ throw error
11541+ }
11542+ return Double.bridgeJSLiftReturn(ret)
11543+ }
11544+
11545+ func _$WeatherData_temperature_set(_ self: JSObject, _ newValue: Double) throws(JSException) -> Void {
11546+ let selfValue = self.bridgeJSLowerParameter()
11547+ let newValueValue = newValue.bridgeJSLowerParameter()
11548+ bjs_WeatherData_temperature_set(selfValue, newValueValue)
11549+ if let error = _swift_js_take_exception() {
11550+ throw error
11551+ }
11552+ }
11553+
11554+ func _$WeatherData_description_set(_ self: JSObject, _ newValue: String) throws(JSException) -> Void {
11555+ let selfValue = self.bridgeJSLowerParameter()
11556+ newValue.bridgeJSWithLoweredParameter { (newValueBytes, newValueLength) in
11557+ bjs_WeatherData_description_set(selfValue, newValueBytes, newValueLength)
11558+ }
11559+ if let error = _swift_js_take_exception() {
11560+ throw error
11561+ }
11562+ }
11563+
11564+ func _$WeatherData_humidity_set(_ self: JSObject, _ newValue: Double) throws(JSException) -> Void {
11565+ let selfValue = self.bridgeJSLowerParameter()
11566+ let newValueValue = newValue.bridgeJSLowerParameter()
11567+ bjs_WeatherData_humidity_set(selfValue, newValueValue)
11568+ if let error = _swift_js_take_exception() {
11569+ throw error
11570+ }
11571+ }
11572+
1142011573#if arch(wasm32)
1142111574@_extern(wasm, module: "BridgeJSRuntimeTests", name: "bjs__WeirdClass_init")
1142211575fileprivate func bjs__WeirdClass_init_extern() -> Int32
0 commit comments