mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
zig: make throwInvalidArguments use JSError (#15305)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user