From d322a246b49acce34ff57e2da0ef4de735df29e4 Mon Sep 17 00:00:00 2001 From: snwy Date: Fri, 27 Sep 2024 20:06:10 -0700 Subject: [PATCH] Update src/bundler/bundle_v2.zig Co-authored-by: Jarred Sumner --- src/bundler/bundle_v2.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index dcc5639bd0..0f9250b90d 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -7633,7 +7633,7 @@ pub const LinkerContext = struct { c.log.addRangeErrorWithNotes(source, record.range, text, notes.items) catch bun.outOfMemory(); - notes.resize(0) catch bun.outOfMemory(); + notes.clearRetainingCapacity(); } } }