@@ -125,7 +125,6 @@ export class SwiftRuntime {
125
125
const value = JSValue . decode ( kind , payload1 , payload2 , this . memory ) ;
126
126
obj [ key ] = value ;
127
127
} ,
128
-
129
128
swjs_get_prop : (
130
129
ref : ref ,
131
130
name : ref ,
@@ -157,7 +156,6 @@ export class SwiftRuntime {
157
156
const value = JSValue . decode ( kind , payload1 , payload2 , this . memory ) ;
158
157
obj [ index ] = value ;
159
158
} ,
160
-
161
159
swjs_get_subscript : (
162
160
ref : ref ,
163
161
index : number ,
@@ -183,15 +181,13 @@ export class SwiftRuntime {
183
181
this . memory . writeUint32 ( bytes_ptr_result , bytes_ptr ) ;
184
182
return bytes . length ;
185
183
} ,
186
-
187
184
swjs_decode_string : ( bytes_ptr : pointer , length : number ) => {
188
185
const bytes = this . memory
189
186
. bytes ( )
190
187
. subarray ( bytes_ptr , bytes_ptr + length ) ;
191
188
const string = this . textDecoder . decode ( bytes ) ;
192
189
return this . memory . retain ( string ) ;
193
190
} ,
194
-
195
191
swjs_load_string : ( ref : ref , buffer : pointer ) => {
196
192
const bytes = this . memory . getObject ( ref ) ;
197
193
this . memory . writeBytes ( buffer , bytes ) ;
@@ -301,7 +297,6 @@ export class SwiftRuntime {
301
297
this . memory
302
298
) ;
303
299
} ,
304
-
305
300
swjs_call_function_with_this_no_catch : (
306
301
obj_ref : ref ,
307
302
func_ref : ref ,
@@ -339,13 +334,13 @@ export class SwiftRuntime {
339
334
}
340
335
}
341
336
} ,
337
+
342
338
swjs_call_new : ( ref : ref , argv : pointer , argc : number ) => {
343
339
const constructor = this . memory . getObject ( ref ) ;
344
340
const args = JSValue . decodeArray ( argv , argc , this . memory ) ;
345
341
const instance = new constructor ( ...args ) ;
346
342
return this . memory . retain ( instance ) ;
347
343
} ,
348
-
349
344
swjs_call_throwing_new : (
350
345
ref : ref ,
351
346
argv : pointer ,
0 commit comments