mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
Remove assertion in js printer triggering for unicode comments (#15143)
This commit is contained in:
@@ -933,9 +933,6 @@ fn NewPrinter(
|
||||
p.writer.print(@TypeOf(span), span);
|
||||
},
|
||||
else => {
|
||||
if (Environment.allow_assert and ascii_only) {
|
||||
for (str) |char| std.debug.assert(char > 0 and char < 0x80);
|
||||
}
|
||||
p.writer.print(StringType, str);
|
||||
},
|
||||
}
|
||||
|
||||
@@ -93,4 +93,13 @@ error: Hello World`,
|
||||
},
|
||||
},
|
||||
});
|
||||
itBundled("bun/unicode comment", {
|
||||
target: "bun",
|
||||
files: {
|
||||
"/a.ts": /* js */ `
|
||||
/* æ */
|
||||
`,
|
||||
},
|
||||
run: { stdout: "" },
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user