@@ -248,14 +248,14 @@ export async function createInstantiator(options, swift) {
248248 bjs [ "make_swift_closure_TestModule_10TestModule10RenderableP_10RenderableP" ] = function ( boxPtr , file , line ) {
249249 const lower_closure_TestModule_10TestModule10RenderableP_10RenderableP = function ( param0 ) {
250250 const ret = instance . exports . invoke_swift_closure_TestModule_10TestModule10RenderableP_10RenderableP ( boxPtr , swift . memory . retain ( param0 ) ) ;
251- const ret1 = swift . memory . getObject ( ret ) ;
252- swift . memory . release ( ret ) ;
253251 if ( tmpRetException ) {
254252 const error = swift . memory . getObject ( tmpRetException ) ;
255253 swift . memory . release ( tmpRetException ) ;
256254 tmpRetException = undefined ;
257255 throw error ;
258256 }
257+ const ret1 = swift . memory . getObject ( ret ) ;
258+ swift . memory . release ( ret ) ;
259259 return ret1 ;
260260 } ;
261261 return makeClosure ( boxPtr , file , line , lower_closure_TestModule_10TestModule10RenderableP_10RenderableP ) ;
@@ -273,14 +273,14 @@ export async function createInstantiator(options, swift) {
273273 bjs [ "make_swift_closure_TestModule_10TestModule10RenderableP_SS" ] = function ( boxPtr , file , line ) {
274274 const lower_closure_TestModule_10TestModule10RenderableP_SS = function ( param0 ) {
275275 instance . exports . invoke_swift_closure_TestModule_10TestModule10RenderableP_SS ( boxPtr , swift . memory . retain ( param0 ) ) ;
276- const ret = tmpRetString ;
277- tmpRetString = undefined ;
278276 if ( tmpRetException ) {
279277 const error = swift . memory . getObject ( tmpRetException ) ;
280278 swift . memory . release ( tmpRetException ) ;
281279 tmpRetException = undefined ;
282280 throw error ;
283281 }
282+ const ret = tmpRetString ;
283+ tmpRetString = undefined ;
284284 return ret ;
285285 } ;
286286 return makeClosure ( boxPtr , file , line , lower_closure_TestModule_10TestModule10RenderableP_SS ) ;
@@ -305,14 +305,14 @@ export async function createInstantiator(options, swift) {
305305 result = 0 ;
306306 }
307307 instance . exports . invoke_swift_closure_TestModule_10TestModuleSq10RenderableP_SS ( boxPtr , + isSome , result ) ;
308- const ret = tmpRetString ;
309- tmpRetString = undefined ;
310308 if ( tmpRetException ) {
311309 const error = swift . memory . getObject ( tmpRetException ) ;
312310 swift . memory . release ( tmpRetException ) ;
313311 tmpRetException = undefined ;
314312 throw error ;
315313 }
314+ const ret = tmpRetString ;
315+ tmpRetString = undefined ;
316316 return ret ;
317317 } ;
318318 return makeClosure ( boxPtr , file , line , lower_closure_TestModule_10TestModuleSq10RenderableP_SS ) ;
@@ -330,14 +330,14 @@ export async function createInstantiator(options, swift) {
330330 bjs [ "make_swift_closure_TestModule_10TestModuley_10RenderableP" ] = function ( boxPtr , file , line ) {
331331 const lower_closure_TestModule_10TestModuley_10RenderableP = function ( ) {
332332 const ret = instance . exports . invoke_swift_closure_TestModule_10TestModuley_10RenderableP ( boxPtr ) ;
333- const ret1 = swift . memory . getObject ( ret ) ;
334- swift . memory . release ( ret ) ;
335333 if ( tmpRetException ) {
336334 const error = swift . memory . getObject ( tmpRetException ) ;
337335 swift . memory . release ( tmpRetException ) ;
338336 tmpRetException = undefined ;
339337 throw error ;
340338 }
339+ const ret1 = swift . memory . getObject ( ret ) ;
340+ swift . memory . release ( ret ) ;
341341 return ret1 ;
342342 } ;
343343 return makeClosure ( boxPtr , file , line , lower_closure_TestModule_10TestModuley_10RenderableP ) ;
0 commit comments