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

@@ -4549,7 +4549,7 @@ pub fn Bun__setSyntheticAllocationLimitForTesting(globalObject: *JSC.JSGlobalObj
}
if (!args[0].isNumber()) {
return globalObject.throwInvalidArguments2("setSyntheticAllocationLimitForTesting expects a number", .{});
return globalObject.throwInvalidArguments("setSyntheticAllocationLimitForTesting expects a number", .{});
}
const limit: usize = @intCast(@max(args[0].coerceToInt64(globalObject), 1024 * 1024));