mirror of
https://github.com/denoland/deno.git
synced 2025-10-01 06:31:15 +00:00
tests(cli): add test for improper unicode encoding (#8162)
and updates swc_ecma_codegen Closes #8161
This commit is contained in:
parent
e7fc7d7151
commit
fec7fdc691
4 changed files with 9 additions and 2 deletions
3
cli/tests/bundle/file_tests-fixture15.ts
Normal file
3
cli/tests/bundle/file_tests-fixture15.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export function getIndex(c: string): number {
|
||||
return "\x00\r\n\x85\u2028\u2029".indexOf(c);
|
||||
}
|
3
cli/tests/bundle/fixture15.out
Normal file
3
cli/tests/bundle/fixture15.out
Normal file
|
@ -0,0 +1,3 @@
|
|||
export function getIndex(c) {
|
||||
return "\x00\r\n\x85\u2028\u2029".indexOf(c);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue