swc/crates/swc_ecma_codegen/tests/str-lits/pr-7985/splitted
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
..
1.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
2.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
3.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
4.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
5.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
6.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
7.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
8.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
9.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
10.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
11.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
12.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
13.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
14.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
15.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
16.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
17.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
18.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
19.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
20.txt fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00