mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
another assertion
This commit is contained in:
@@ -39,5 +39,8 @@ pub fn fmt(this: *StringBuilder, comptime str: string, args: anytype) string {
|
||||
var buf = this.ptr.?[this.len..this.cap];
|
||||
const out = std.fmt.bufPrint(buf, str, args) catch unreachable;
|
||||
this.len += out.len;
|
||||
|
||||
assert(this.len <= this.cap);
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user