swc/crates/swc_ecma_codegen/tests
Donny/강동윤 39c680d814
fix(es/codegen): Fix codegen of unicode surrogates (#7985)
**Description:**


x-ref: https://vercel.slack.com/archives/C02HY34AKME/p1695334071194139


Reproduction: https://github.com/kdy1/repro-test-mdx-korean



Regression of next.js: `v13.4.11`(swc_core@v0.79.13) => `v13.5.2`
(swc_core@v0.83.12)


 - `next@v13.4.19` works (swc_core@v0.79.59)
 - `next@v13.4.20-canary.3` works (swc_core@v0.79.70)
 -  **`next@v13.4.20-canary.32` fails** (swc_core@v0.83.12)

Commit range:
662f236aa5...e67bf05f9d

- `swc_core@v0.79.70`:
662f236aa5
- `swc_core@v0.83.12`:
e67bf05f9d

Diff: https://gist.github.com/kdy1/047e7e5537c34180d446cb3d5b95fce8

---

I did more investigation by monkey-patching the `next` package.
`.minify()` resolved without an exception.
It means that `.minify()` is producing an invalid ES code.

So... candidates are

 - https://github.com/swc-project/swc/pull/7890
 - https://github.com/swc-project/swc/pull/7876
 - https://github.com/swc-project/swc/pull/7858
 - https://github.com/swc-project/swc/pull/7856
 - https://github.com/swc-project/swc/pull/7853
 - https://github.com/swc-project/swc/pull/7832
2023-09-25 23:36:05 +00:00
..
fixture feat(es/ast): Support import attributes proposal (#7868) 2023-08-28 00:29:45 +00:00
str-lits/pr-7985 fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
test262 fix(es/codegen): Remove extra spaces in AssignPatProp and KeyValuePatProp (#7488) 2023-06-07 05:08:35 +00:00
test262-min fix(es/codegen): Fix codegen of string literals with \x000 (#6838) 2023-01-20 08:08:58 +00:00
fixture.rs feat(es/codegen): Add an option to print assert for import attributes (#7914) 2023-09-05 21:24:25 +09:00
sourcemap.rs feat(es/codegen): Add an option to print assert for import attributes (#7914) 2023-09-05 21:24:25 +09:00
srcmap.mjs fix(es/codegen): Align sourcemap with terser (#5657) 2022-09-26 18:12:42 +09:00
test262.rs feat(es/codegen): Add an option to print assert for import attributes (#7914) 2023-09-05 21:24:25 +09:00