aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-07-24 19:08:56 -0700
committerGravatar GitHub <noreply@github.com> 2023-07-24 19:08:56 -0700
commite154763e4df422a33c66208717748827a1164de7 (patch)
treecdc7e5607df1b525c85e895f77666e6f39bc090a /src
parentac10a1b6331c1451dec3e65bb1c34b3bd65a6851 (diff)
downloadbun-e154763e4df422a33c66208717748827a1164de7.tar.gz
bun-e154763e4df422a33c66208717748827a1164de7.tar.zst
bun-e154763e4df422a33c66208717748827a1164de7.zip
fix rope string push (#3796)
* push to next next * couple more tests * end
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;
}
}