mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
Bump Zig again (#18948)
This commit is contained in:
@@ -1118,10 +1118,10 @@ pub const SliceWithUnderlyingString = struct {
|
||||
utf8: ZigString.Slice = ZigString.Slice.empty,
|
||||
underlying: String = String.dead,
|
||||
|
||||
did_report_extra_memory_debug: bun.DebugOnly(bool) = if (bun.Environment.allow_assert) false,
|
||||
did_report_extra_memory_debug: bun.DebugOnly(bool) = if (bun.Environment.isDebug) false,
|
||||
|
||||
pub inline fn reportExtraMemory(this: *SliceWithUnderlyingString, vm: *JSC.VM) void {
|
||||
if (comptime bun.Environment.allow_assert) {
|
||||
if (comptime bun.Environment.isDebug) {
|
||||
bun.assert(!this.did_report_extra_memory_debug);
|
||||
this.did_report_extra_memory_debug = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user