Skip javascriptcore's first parse step for ES Modules (#15758)

This commit is contained in:
pfg
2025-01-09 19:31:44 -08:00
committed by GitHub
parent 0b9db36494
commit ccc7bde7c6
21 changed files with 1516 additions and 190 deletions

View File

@@ -6473,7 +6473,7 @@ fn QuoteEscapeFormat(comptime flags: QuoteEscapeFormatFlags) type {
data: []const u8,
pub fn format(self: @This(), comptime _: []const u8, _: std.fmt.FormatOptions, writer: anytype) !void {
try bun.js_printer.writePreQuotedString(self.data, @TypeOf(writer), writer, flags.quote_char, false, flags.json, flags.str_encoding);
try bun.js_printer.writePreQuotedString(self.data, @TypeOf(writer), writer, flags.quote_char, flags.ascii_only, flags.json, flags.str_encoding);
}
};
}