diff options
Diffstat (limited to 'src/js_ast.zig')
-rw-r--r-- | src/js_ast.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig index b83f6c5c2..0019857d5 100644 --- a/src/js_ast.zig +++ b/src/js_ast.zig @@ -2327,8 +2327,9 @@ pub const E = struct { strings.eqlComptimeUTF16(s.slice16()[0..value.len], value); } - pub fn string(s: *const String, allocator: std.mem.Allocator) !bun.string { + pub fn string(s: *String, allocator: std.mem.Allocator) !bun.string { if (s.isUTF8()) { + s.resolveRopeIfNeeded(allocator); return s.data; } else { return strings.toUTF8Alloc(allocator, s.slice16()); |