We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54c146e commit 92dd0beCopy full SHA for 92dd0be
Runtime/src/index.ts
@@ -398,8 +398,7 @@ export class SwiftRuntime {
398
writeUint32(result_obj, this.heap.retain(result));
399
},
400
swjs_instanceof: (
401
- obj_ref: ref, constructor_ref: ref,
402
- result_ptr: pointer
+ obj_ref: ref, constructor_ref: ref
403
) => {
404
const obj = this.heap.referenceHeap(obj_ref)
405
const constructor = this.heap.referenceHeap(constructor_ref)
@@ -415,9 +414,6 @@ export class SwiftRuntime {
415
414
// Call `.slice()` to copy the memory
416
writeUint32(result_obj, this.heap.retain(array.slice()));
417
418
- swjs_retain: (ref: ref) => {
419
- this.heap.retain(this.heap.referenceHeap(ref))
420
- },
421
swjs_release: (ref: ref) => {
422
this.heap.release(ref)
423
}
0 commit comments