mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 14:22:01 +00:00
prevent crash
This commit is contained in:
@@ -3851,8 +3851,8 @@ fn NewPrinter(
|
||||
|
||||
if (comptime is_bun_platform) {
|
||||
if (import_record.do_commonjs_transform_in_printer) {
|
||||
assert(s.items.len > 0);
|
||||
|
||||
if (s.items.len == 0)
|
||||
return;
|
||||
p.print("var {");
|
||||
var symbol_counter: u32 = p.symbol_counter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user