Skip to content

Commit 14541b8

Browse files
committed
consistent whitespace (by semantic grouping) in index.ts
1 parent 1fdcd26 commit 14541b8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Runtime/src/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ export class SwiftRuntime {
125125
const value = JSValue.decode(kind, payload1, payload2, this.memory);
126126
obj[key] = value;
127127
},
128-
129128
swjs_get_prop: (
130129
ref: ref,
131130
name: ref,
@@ -157,7 +156,6 @@ export class SwiftRuntime {
157156
const value = JSValue.decode(kind, payload1, payload2, this.memory);
158157
obj[index] = value;
159158
},
160-
161159
swjs_get_subscript: (
162160
ref: ref,
163161
index: number,
@@ -183,15 +181,13 @@ export class SwiftRuntime {
183181
this.memory.writeUint32(bytes_ptr_result, bytes_ptr);
184182
return bytes.length;
185183
},
186-
187184
swjs_decode_string: (bytes_ptr: pointer, length: number) => {
188185
const bytes = this.memory
189186
.bytes()
190187
.subarray(bytes_ptr, bytes_ptr + length);
191188
const string = this.textDecoder.decode(bytes);
192189
return this.memory.retain(string);
193190
},
194-
195191
swjs_load_string: (ref: ref, buffer: pointer) => {
196192
const bytes = this.memory.getObject(ref);
197193
this.memory.writeBytes(buffer, bytes);
@@ -301,7 +297,6 @@ export class SwiftRuntime {
301297
this.memory
302298
);
303299
},
304-
305300
swjs_call_function_with_this_no_catch: (
306301
obj_ref: ref,
307302
func_ref: ref,
@@ -339,13 +334,13 @@ export class SwiftRuntime {
339334
}
340335
}
341336
},
337+
342338
swjs_call_new: (ref: ref, argv: pointer, argc: number) => {
343339
const constructor = this.memory.getObject(ref);
344340
const args = JSValue.decodeArray(argv, argc, this.memory);
345341
const instance = new constructor(...args);
346342
return this.memory.retain(instance);
347343
},
348-
349344
swjs_call_throwing_new: (
350345
ref: ref,
351346
argv: pointer,

0 commit comments

Comments
 (0)