@@ -28,10 +28,7 @@ extension DataPoint: _BridgedSwiftStruct {
2828 }
2929
3030 init ( unsafelyCopying jsObject: JSObject ) {
31- let __bjs_cleanupId = _bjs_struct_lower_DataPoint ( jsObject. bridgeJSLowerParameter ( ) )
32- defer {
33- _swift_js_struct_cleanup ( __bjs_cleanupId)
34- }
31+ _bjs_struct_lower_DataPoint ( jsObject. bridgeJSLowerParameter ( ) )
3532 self = Self . bridgeJSStackPop ( )
3633 }
3734
@@ -44,9 +41,9 @@ extension DataPoint: _BridgedSwiftStruct {
4441
4542#if arch(wasm32)
4643@_extern ( wasm, module: " bjs " , name: " swift_js_struct_lower_DataPoint " )
47- fileprivate func _bjs_struct_lower_DataPoint( _ objectId: Int32 ) -> Int32
44+ fileprivate func _bjs_struct_lower_DataPoint( _ objectId: Int32 ) -> Void
4845#else
49- fileprivate func _bjs_struct_lower_DataPoint( _ objectId: Int32 ) -> Int32 {
46+ fileprivate func _bjs_struct_lower_DataPoint( _ objectId: Int32 ) -> Void {
5047 fatalError ( " Only available on WebAssembly " )
5148}
5249#endif
@@ -90,10 +87,7 @@ extension Address: _BridgedSwiftStruct {
9087 }
9188
9289 init ( unsafelyCopying jsObject: JSObject ) {
93- let __bjs_cleanupId = _bjs_struct_lower_Address ( jsObject. bridgeJSLowerParameter ( ) )
94- defer {
95- _swift_js_struct_cleanup ( __bjs_cleanupId)
96- }
90+ _bjs_struct_lower_Address ( jsObject. bridgeJSLowerParameter ( ) )
9791 self = Self . bridgeJSStackPop ( )
9892 }
9993
@@ -106,9 +100,9 @@ extension Address: _BridgedSwiftStruct {
106100
107101#if arch(wasm32)
108102@_extern ( wasm, module: " bjs " , name: " swift_js_struct_lower_Address " )
109- fileprivate func _bjs_struct_lower_Address( _ objectId: Int32 ) -> Int32
103+ fileprivate func _bjs_struct_lower_Address( _ objectId: Int32 ) -> Void
110104#else
111- fileprivate func _bjs_struct_lower_Address( _ objectId: Int32 ) -> Int32 {
105+ fileprivate func _bjs_struct_lower_Address( _ objectId: Int32 ) -> Void {
112106 fatalError ( " Only available on WebAssembly " )
113107}
114108#endif
@@ -143,10 +137,7 @@ extension Person: _BridgedSwiftStruct {
143137 }
144138
145139 init ( unsafelyCopying jsObject: JSObject ) {
146- let __bjs_cleanupId = _bjs_struct_lower_Person ( jsObject. bridgeJSLowerParameter ( ) )
147- defer {
148- _swift_js_struct_cleanup ( __bjs_cleanupId)
149- }
140+ _bjs_struct_lower_Person ( jsObject. bridgeJSLowerParameter ( ) )
150141 self = Self . bridgeJSStackPop ( )
151142 }
152143
@@ -159,9 +150,9 @@ extension Person: _BridgedSwiftStruct {
159150
160151#if arch(wasm32)
161152@_extern ( wasm, module: " bjs " , name: " swift_js_struct_lower_Person " )
162- fileprivate func _bjs_struct_lower_Person( _ objectId: Int32 ) -> Int32
153+ fileprivate func _bjs_struct_lower_Person( _ objectId: Int32 ) -> Void
163154#else
164- fileprivate func _bjs_struct_lower_Person( _ objectId: Int32 ) -> Int32 {
155+ fileprivate func _bjs_struct_lower_Person( _ objectId: Int32 ) -> Void {
165156 fatalError ( " Only available on WebAssembly " )
166157}
167158#endif
@@ -188,10 +179,7 @@ extension Session: _BridgedSwiftStruct {
188179 }
189180
190181 init ( unsafelyCopying jsObject: JSObject ) {
191- let __bjs_cleanupId = _bjs_struct_lower_Session ( jsObject. bridgeJSLowerParameter ( ) )
192- defer {
193- _swift_js_struct_cleanup ( __bjs_cleanupId)
194- }
182+ _bjs_struct_lower_Session ( jsObject. bridgeJSLowerParameter ( ) )
195183 self = Self . bridgeJSStackPop ( )
196184 }
197185
@@ -204,9 +192,9 @@ extension Session: _BridgedSwiftStruct {
204192
205193#if arch(wasm32)
206194@_extern ( wasm, module: " bjs " , name: " swift_js_struct_lower_Session " )
207- fileprivate func _bjs_struct_lower_Session( _ objectId: Int32 ) -> Int32
195+ fileprivate func _bjs_struct_lower_Session( _ objectId: Int32 ) -> Void
208196#else
209- fileprivate func _bjs_struct_lower_Session( _ objectId: Int32 ) -> Int32 {
197+ fileprivate func _bjs_struct_lower_Session( _ objectId: Int32 ) -> Void {
210198 fatalError ( " Only available on WebAssembly " )
211199}
212200#endif
@@ -239,10 +227,7 @@ extension Measurement: _BridgedSwiftStruct {
239227 }
240228
241229 init ( unsafelyCopying jsObject: JSObject ) {
242- let __bjs_cleanupId = _bjs_struct_lower_Measurement ( jsObject. bridgeJSLowerParameter ( ) )
243- defer {
244- _swift_js_struct_cleanup ( __bjs_cleanupId)
245- }
230+ _bjs_struct_lower_Measurement ( jsObject. bridgeJSLowerParameter ( ) )
246231 self = Self . bridgeJSStackPop ( )
247232 }
248233
@@ -255,9 +240,9 @@ extension Measurement: _BridgedSwiftStruct {
255240
256241#if arch(wasm32)
257242@_extern ( wasm, module: " bjs " , name: " swift_js_struct_lower_Measurement " )
258- fileprivate func _bjs_struct_lower_Measurement( _ objectId: Int32 ) -> Int32
243+ fileprivate func _bjs_struct_lower_Measurement( _ objectId: Int32 ) -> Void
259244#else
260- fileprivate func _bjs_struct_lower_Measurement( _ objectId: Int32 ) -> Int32 {
245+ fileprivate func _bjs_struct_lower_Measurement( _ objectId: Int32 ) -> Void {
261246 fatalError ( " Only available on WebAssembly " )
262247}
263248#endif
@@ -280,10 +265,7 @@ extension ConfigStruct: _BridgedSwiftStruct {
280265 }
281266
282267 init ( unsafelyCopying jsObject: JSObject ) {
283- let __bjs_cleanupId = _bjs_struct_lower_ConfigStruct ( jsObject. bridgeJSLowerParameter ( ) )
284- defer {
285- _swift_js_struct_cleanup ( __bjs_cleanupId)
286- }
268+ _bjs_struct_lower_ConfigStruct ( jsObject. bridgeJSLowerParameter ( ) )
287269 self = Self . bridgeJSStackPop ( )
288270 }
289271
@@ -296,9 +278,9 @@ extension ConfigStruct: _BridgedSwiftStruct {
296278
297279#if arch(wasm32)
298280@_extern ( wasm, module: " bjs " , name: " swift_js_struct_lower_ConfigStruct " )
299- fileprivate func _bjs_struct_lower_ConfigStruct( _ objectId: Int32 ) -> Int32
281+ fileprivate func _bjs_struct_lower_ConfigStruct( _ objectId: Int32 ) -> Void
300282#else
301- fileprivate func _bjs_struct_lower_ConfigStruct( _ objectId: Int32 ) -> Int32 {
283+ fileprivate func _bjs_struct_lower_ConfigStruct( _ objectId: Int32 ) -> Void {
302284 fatalError ( " Only available on WebAssembly " )
303285}
304286#endif
@@ -404,10 +386,7 @@ extension Container: _BridgedSwiftStruct {
404386 }
405387
406388 init ( unsafelyCopying jsObject: JSObject ) {
407- let __bjs_cleanupId = _bjs_struct_lower_Container ( jsObject. bridgeJSLowerParameter ( ) )
408- defer {
409- _swift_js_struct_cleanup ( __bjs_cleanupId)
410- }
389+ _bjs_struct_lower_Container ( jsObject. bridgeJSLowerParameter ( ) )
411390 self = Self . bridgeJSStackPop ( )
412391 }
413392
@@ -420,9 +399,9 @@ extension Container: _BridgedSwiftStruct {
420399
421400#if arch(wasm32)
422401@_extern ( wasm, module: " bjs " , name: " swift_js_struct_lower_Container " )
423- fileprivate func _bjs_struct_lower_Container( _ objectId: Int32 ) -> Int32
402+ fileprivate func _bjs_struct_lower_Container( _ objectId: Int32 ) -> Void
424403#else
425- fileprivate func _bjs_struct_lower_Container( _ objectId: Int32 ) -> Int32 {
404+ fileprivate func _bjs_struct_lower_Container( _ objectId: Int32 ) -> Void {
426405 fatalError ( " Only available on WebAssembly " )
427406}
428407#endif
0 commit comments