-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(es/codegen): Fix codegen of unicode surrogates #7985
Conversation
87a96e5
to
c23a481
Compare
e51bc28
to
0d513c9
Compare
Investigation: This was not a regression. This is simply a bug. I'll take some rest and fix it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
swc-bump:
- swc_ecma_codegen
0xffff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated review comment generated by auto-rebase script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated review comment generated by auto-rebase script
0xffff
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
([email protected]) =>v13.5.2
([email protected])[email protected]
works ([email protected])[email protected]
works ([email protected])[email protected]
fails ([email protected])Commit range: 662f236...e67bf05
[email protected]
: 662f236[email protected]
: e67bf05Diff: 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
mutated
andmutation_by_call_count
#7890is_fn_local
even if var is hoisted #7876jsc.minify.format.comments
#7853reassigned
#7832Related issue (if exists):