Skip to content

Commit

Permalink
initialise an empty pointer for all arguments
Browse files Browse the repository at this point in the history
except arguments of course
  • Loading branch information
vixalien committed Jan 6, 2024
1 parent 912c078 commit f2025ce
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/types/argument.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ export function initArgument(type) {
g.base_info.unref(info);
return result;
}
case GITypeTag.ARRAY:
case GITypeTag.GLIST:
case GITypeTag.GSLIST: {
default: {
return cast_ptr_u64(cast_buf_ptr(new Uint8Array(1)));
}
default:
return 0n;
}
}

Expand Down

0 comments on commit f2025ce

Please sign in to comment.