diff options
author | 2023-07-24 19:08:56 -0700 | |
---|---|---|
committer | 2023-07-24 19:08:56 -0700 | |
commit | e154763e4df422a33c66208717748827a1164de7 (patch) | |
tree | cdc7e5607df1b525c85e895f77666e6f39bc090a /src | |
parent | ac10a1b6331c1451dec3e65bb1c34b3bd65a6851 (diff) | |
download | bun-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.zig | 4 |
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; } } |