diff options
Diffstat (limited to 'src/js_ast.zig')
-rw-r--r-- | src/js_ast.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig index 46c204e69..3b17240c0 100644 --- a/src/js_ast.zig +++ b/src/js_ast.zig @@ -1714,7 +1714,7 @@ pub const E = struct { if (comptime !Environment.isWasm) { if (value == @trunc(value) and (value < std.math.maxInt(i32) and value > std.math.minInt(i32))) { const int_value = @as(i64, @intFromFloat(value)); - const abs = @as(u64, @intCast(std.math.absInt(int_value) catch return null)); + const abs = @as(u64, @intCast(@abs(int_value))); if (abs < double_digit.len) { return if (int_value < 0) neg_double_digit[abs] |