mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
fix: Append n when printing a BigInt
This commit is contained in:
@@ -1614,7 +1614,7 @@ pub const ZigConsoleClient = struct {
|
||||
},
|
||||
.BigInt => {
|
||||
var out_str = value.getZigString(this.globalThis).slice();
|
||||
writer.print(comptime Output.prettyFmt("<r><yellow>{s}<r>", enable_ansi_colors), .{out_str});
|
||||
writer.print(comptime Output.prettyFmt("<r><yellow>{s}n<r>", enable_ansi_colors), .{out_str});
|
||||
},
|
||||
.Double => {
|
||||
writer.print(comptime Output.prettyFmt("<r><yellow>{d}<r>", enable_ansi_colors), .{value.asNumber()});
|
||||
|
||||
Reference in New Issue
Block a user