zig: make throwInvalidArguments use JSError (#15305)

This commit is contained in:
Meghan Denny
2024-11-21 16:19:13 -08:00
committed by GitHub
parent 2283ed098f
commit c3f63bcdc4
38 changed files with 621 additions and 999 deletions

View File

@@ -98,7 +98,7 @@ pub const ShellErr = union(enum) {
// this.bunVM().allocator.free(JSC.ZigString.untagged(str._unsafe_ptr_do_not_use)[0..str.len]);
},
.invalid_arguments => {
return globalThis.throwInvalidArguments2("{s}", .{this.invalid_arguments.val});
return globalThis.throwInvalidArguments("{s}", .{this.invalid_arguments.val});
},
.todo => {
return globalThis.throwTODO(this.todo);