File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -473,10 +473,6 @@ export class SwiftRuntime {
473
473
let result : any ;
474
474
try {
475
475
result = Reflect . construct ( obj , decodeValues ( argv , argc ) ) ;
476
- if ( typeof result != "object" )
477
- throw Error (
478
- `Invalid result type of object constructor of "${ obj } ": "${ result } "`
479
- ) ;
480
476
} catch ( error ) {
481
477
writeValue (
482
478
error ,
@@ -497,10 +493,6 @@ export class SwiftRuntime {
497
493
) => {
498
494
const obj = this . heap . referenceHeap ( ref ) ;
499
495
const result = Reflect . construct ( obj , decodeValues ( argv , argc ) ) ;
500
- if ( typeof result != "object" )
501
- throw Error (
502
- `Invalid result type of object constructor of "${ obj } ": "${ result } "`
503
- ) ;
504
496
writeUint32 ( result_obj , this . heap . retain ( result ) ) ;
505
497
} ,
506
498
swjs_instanceof : ( obj_ref : ref , constructor_ref : ref ) => {
You can’t perform that action at this time.
0 commit comments