@@ -5692,20 +5692,8 @@ public func _bjs_roundTripGreeterArray() -> Void {
56925692@_cdecl ( " bjs_roundTripOptionalIntArray " )
56935693public func _bjs_roundTripOptionalIntArray( ) -> Void {
56945694 #if arch(wasm32)
5695- let ret = roundTripOptionalIntArray ( _: {
5696- let __count = Int ( _swift_js_pop_i32 ( ) )
5697- var __result : [ Optional < Int > ] = [ ]
5698- __result. reserveCapacity ( __count)
5699- for _ in 0 ..< __count {
5700- __result. append ( Optional< Int> . bridgeJSStackPop( ) )
5701- }
5702- __result. reverse ( )
5703- return __result
5704- } ( ) )
5705- for __bjs_elem_ret in ret {
5706- __bjs_elem_ret. bridgeJSStackPush ( )
5707- }
5708- _swift_js_push_i32 ( Int32 ( ret. count) )
5695+ let ret = roundTripOptionalIntArray ( _: [ Optional < Int > ] . bridgeJSStackPop ( ) )
5696+ ret. bridgeJSStackPush ( )
57095697 #else
57105698 fatalError ( " Only available on WebAssembly " )
57115699 #endif
@@ -5715,20 +5703,8 @@ public func _bjs_roundTripOptionalIntArray() -> Void {
57155703@_cdecl ( " bjs_roundTripOptionalStringArray " )
57165704public func _bjs_roundTripOptionalStringArray( ) -> Void {
57175705 #if arch(wasm32)
5718- let ret = roundTripOptionalStringArray ( _: {
5719- let __count = Int ( _swift_js_pop_i32 ( ) )
5720- var __result : [ Optional < String > ] = [ ]
5721- __result. reserveCapacity ( __count)
5722- for _ in 0 ..< __count {
5723- __result. append ( Optional< String> . bridgeJSStackPop( ) )
5724- }
5725- __result. reverse ( )
5726- return __result
5727- } ( ) )
5728- for __bjs_elem_ret in ret {
5729- __bjs_elem_ret. bridgeJSStackPush ( )
5730- }
5731- _swift_js_push_i32 ( Int32 ( ret. count) )
5706+ let ret = roundTripOptionalStringArray ( _: [ Optional < String > ] . bridgeJSStackPop ( ) )
5707+ ret. bridgeJSStackPush ( )
57325708 #else
57335709 fatalError ( " Only available on WebAssembly " )
57345710 #endif
@@ -5738,20 +5714,8 @@ public func _bjs_roundTripOptionalStringArray() -> Void {
57385714@_cdecl ( " bjs_roundTripOptionalDataPointArray " )
57395715public func _bjs_roundTripOptionalDataPointArray( ) -> Void {
57405716 #if arch(wasm32)
5741- let ret = roundTripOptionalDataPointArray ( _: {
5742- let __count = Int ( _swift_js_pop_i32 ( ) )
5743- var __result : [ Optional < DataPoint > ] = [ ]
5744- __result. reserveCapacity ( __count)
5745- for _ in 0 ..< __count {
5746- __result. append ( Optional< DataPoint> . bridgeJSStackPop( ) )
5747- }
5748- __result. reverse ( )
5749- return __result
5750- } ( ) )
5751- for __bjs_elem_ret in ret {
5752- __bjs_elem_ret. bridgeJSStackPush ( )
5753- }
5754- _swift_js_push_i32 ( Int32 ( ret. count) )
5717+ let ret = roundTripOptionalDataPointArray ( _: [ Optional < DataPoint > ] . bridgeJSStackPop ( ) )
5718+ ret. bridgeJSStackPush ( )
57555719 #else
57565720 fatalError ( " Only available on WebAssembly " )
57575721 #endif
@@ -5761,20 +5725,8 @@ public func _bjs_roundTripOptionalDataPointArray() -> Void {
57615725@_cdecl ( " bjs_roundTripOptionalDirectionArray " )
57625726public func _bjs_roundTripOptionalDirectionArray( ) -> Void {
57635727 #if arch(wasm32)
5764- let ret = roundTripOptionalDirectionArray ( _: {
5765- let __count = Int ( _swift_js_pop_i32 ( ) )
5766- var __result : [ Optional < Direction > ] = [ ]
5767- __result. reserveCapacity ( __count)
5768- for _ in 0 ..< __count {
5769- __result. append ( Optional< Direction> . bridgeJSStackPop( ) )
5770- }
5771- __result. reverse ( )
5772- return __result
5773- } ( ) )
5774- for __bjs_elem_ret in ret {
5775- __bjs_elem_ret. bridgeJSStackPush ( )
5776- }
5777- _swift_js_push_i32 ( Int32 ( ret. count) )
5728+ let ret = roundTripOptionalDirectionArray ( _: [ Optional < Direction > ] . bridgeJSStackPop ( ) )
5729+ ret. bridgeJSStackPush ( )
57785730 #else
57795731 fatalError ( " Only available on WebAssembly " )
57805732 #endif
@@ -5784,20 +5736,8 @@ public func _bjs_roundTripOptionalDirectionArray() -> Void {
57845736@_cdecl ( " bjs_roundTripOptionalStatusArray " )
57855737public func _bjs_roundTripOptionalStatusArray( ) -> Void {
57865738 #if arch(wasm32)
5787- let ret = roundTripOptionalStatusArray ( _: {
5788- let __count = Int ( _swift_js_pop_i32 ( ) )
5789- var __result : [ Optional < Status > ] = [ ]
5790- __result. reserveCapacity ( __count)
5791- for _ in 0 ..< __count {
5792- __result. append ( Optional< Status> . bridgeJSStackPop( ) )
5793- }
5794- __result. reverse ( )
5795- return __result
5796- } ( ) )
5797- for __bjs_elem_ret in ret {
5798- __bjs_elem_ret. bridgeJSStackPush ( )
5799- }
5800- _swift_js_push_i32 ( Int32 ( ret. count) )
5739+ let ret = roundTripOptionalStatusArray ( _: [ Optional < Status > ] . bridgeJSStackPop ( ) )
5740+ ret. bridgeJSStackPush ( )
58015741 #else
58025742 fatalError ( " Only available on WebAssembly " )
58035743 #endif
@@ -6005,20 +5945,8 @@ public func _bjs_roundTripJSObjectArray() -> Void {
60055945@_cdecl ( " bjs_roundTripOptionalJSObjectArray " )
60065946public func _bjs_roundTripOptionalJSObjectArray( ) -> Void {
60075947 #if arch(wasm32)
6008- let ret = roundTripOptionalJSObjectArray ( _: {
6009- let __count = Int ( _swift_js_pop_i32 ( ) )
6010- var __result : [ Optional < JSObject > ] = [ ]
6011- __result. reserveCapacity ( __count)
6012- for _ in 0 ..< __count {
6013- __result. append ( Optional< JSObject> . bridgeJSStackPop( ) )
6014- }
6015- __result. reverse ( )
6016- return __result
6017- } ( ) )
6018- for __bjs_elem_ret in ret {
6019- __bjs_elem_ret. bridgeJSStackPush ( )
6020- }
6021- _swift_js_push_i32 ( Int32 ( ret. count) )
5948+ let ret = roundTripOptionalJSObjectArray ( _: [ Optional < JSObject > ] . bridgeJSStackPop ( ) )
5949+ ret. bridgeJSStackPush ( )
60225950 #else
60235951 fatalError ( " Only available on WebAssembly " )
60245952 #endif
@@ -6028,8 +5956,8 @@ public func _bjs_roundTripOptionalJSObjectArray() -> Void {
60285956@_cdecl ( " bjs_roundTripFooArray " )
60295957public func _bjs_roundTripFooArray( ) -> Void {
60305958 #if arch(wasm32)
6031- let ret = roundTripFooArray ( _: [ JSObject ] . bridgeJSStackPop ( ) . map { Foo ( unsafelyWrapping : $0 ) } )
6032- ret. map { $0 . jsObject } . bridgeJSStackPush ( )
5959+ let ret = roundTripFooArray ( _: [ Foo ] . bridgeJSStackPop ( ) )
5960+ ret. bridgeJSStackPush ( )
60335961 #else
60345962 fatalError ( " Only available on WebAssembly " )
60355963 #endif
@@ -6039,20 +5967,8 @@ public func _bjs_roundTripFooArray() -> Void {
60395967@_cdecl ( " bjs_roundTripOptionalFooArray " )
60405968public func _bjs_roundTripOptionalFooArray( ) -> Void {
60415969 #if arch(wasm32)
6042- let ret = roundTripOptionalFooArray ( _: {
6043- let __count = Int ( _swift_js_pop_i32 ( ) )
6044- var __result : [ Optional < Foo > ] = [ ]
6045- __result. reserveCapacity ( __count)
6046- for _ in 0 ..< __count {
6047- __result. append ( Optional < JSObject > . bridgeJSStackPop ( ) . map { Foo ( unsafelyWrapping: $0) } )
6048- }
6049- __result. reverse ( )
6050- return __result
6051- } ( ) )
6052- for __bjs_elem_ret in ret {
6053- __bjs_elem_ret. bridgeJSStackPush ( )
6054- }
6055- _swift_js_push_i32 ( Int32 ( ret. count) )
5970+ let ret = roundTripOptionalFooArray ( _: [ Optional < Foo > ] . bridgeJSStackPop ( ) )
5971+ ret. bridgeJSStackPush ( )
60565972 #else
60575973 fatalError ( " Only available on WebAssembly " )
60585974 #endif
0 commit comments