aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js_ast.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig
index b83f6c5c2..b5f47474a 100644
--- a/src/js_ast.zig
+++ b/src/js_ast.zig
@@ -2163,7 +2163,9 @@ pub const E = struct {
this.next = other;
this.end = other;
} else {
- this.end.?.next = other;
+ var end = this.end.?;
+ while (end.next != null) end = end.end.?;
+ end.next = other;
this.end = other;
}
}