mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
E.String gets a Rope
This commit is contained in:
@@ -317,7 +317,7 @@ fn exportReplacementValue(value: JSValue, globalThis: *JSGlobalObject) ?JSAst.Ex
|
||||
|
||||
if (value.isString()) {
|
||||
var str = JSAst.E.String{
|
||||
.utf8 = std.fmt.allocPrint(bun.default_allocator, "{}", .{value.getZigString(globalThis)}) catch unreachable,
|
||||
.data = std.fmt.allocPrint(bun.default_allocator, "{}", .{value.getZigString(globalThis)}) catch unreachable,
|
||||
};
|
||||
var out = bun.default_allocator.create(JSAst.E.String) catch unreachable;
|
||||
out.* = str;
|
||||
|
||||
Reference in New Issue
Block a user