aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Ciro Spaciari <ciro.spaciari@gmail.com> 2023-09-13 17:41:47 -0700
committerGravatar GitHub <noreply@github.com> 2023-09-13 17:41:47 -0700
commit972a6f29cc0d232982ad9d2cae493c8a5cc7a74a (patch)
tree1035c838187b64ce3e862abb2522339fc7b89eb1 /src
parent932fa35f9965a9f3565cfed0fbf71f01ad5fd818 (diff)
downloadbun-972a6f29cc0d232982ad9d2cae493c8a5cc7a74a.tar.gz
bun-972a6f29cc0d232982ad9d2cae493c8a5cc7a74a.tar.zst
bun-972a6f29cc0d232982ad9d2cae493c8a5cc7a74a.zip
fix(console.log) fix printing long custom format (#5164)
* avoid overflow * Update src/bun.js/bindings/exports.zig * add mongodb inspect test * bun db test --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
Diffstat (limited to 'src')
-rw-r--r--src/bun.js/bindings/exports.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/exports.zig b/src/bun.js/bindings/exports.zig
index 18b7c8bce..66bbe798f 100644
--- a/src/bun.js/bindings/exports.zig
+++ b/src/bun.js/bindings/exports.zig
@@ -2119,7 +2119,7 @@ pub const ZigConsoleClient = struct {
this.globalThis,
this.custom_formatted_object.function,
this.custom_formatted_object.this,
- this.max_depth - this.depth,
+ this.max_depth -| this.depth,
this.max_depth,
enable_ansi_colors,
);