-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix(es/compat): Properly handle rest assignment in for-in/of RHS #10878
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/compat): Properly handle rest assignment in for-in/of RHS #10878
Conversation
|
kdy1
left a comment
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.
Thanks! I’ll merge it and publish a new version later today!
CodSpeed Performance ReportMerging #10878 will not alter performanceComparing Summary
|
|
Github is broken? I cannot merge this PR for an unknown reason |
Pull Request is not mergeable
|
@mischnic I'm sorry, but can you create another PR if it's urgent? |
|
It's not urgent, but I created a new one |
) **Description:** Remake of #10878 Fix a panic ``` thread 'main' panicked at /Users/niklas/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/swc_ecma_compat_es2015-22.0.0/src/destructuring.rs:419:52: internal error: entered unreachable code: Object rest pattern should be removed by es2018::object_rest_spread pass note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` **Related issue:** Closes #10877
So what do we need to do about swc-project/swc#10813? Not sure when we'd call `global_atom_store_gc()` https://vercel.slack.com/archives/C03EWR7LGEN/p1752228740427529 The 2s-debounced gc calls didn't have a measurable effect on `next build --turbo`: ``` with gc: 360.90s user 80.74s system 688% cpu 1:04.15 total 357.24s user 82.61s system 664% cpu 1:06.23 total without gc: 360.51s user 80.48s system 698% cpu 1:03.16 total 355.21s user 79.99s system 667% cpu 1:05.18 total ``` - [x] ~~Blocked on swc-project/swc#10878 - [ ] swc-project/swc#10930 Closes #81898
So what do we need to do about swc-project/swc#10813? Not sure when we'd call `global_atom_store_gc()` https://vercel.slack.com/archives/C03EWR7LGEN/p1752228740427529 The 2s-debounced gc calls didn't have a measurable effect on `next build --turbo`: ``` with gc: 360.90s user 80.74s system 688% cpu 1:04.15 total 357.24s user 82.61s system 664% cpu 1:06.23 total without gc: 360.51s user 80.48s system 698% cpu 1:03.16 total 355.21s user 79.99s system 667% cpu 1:05.18 total ``` - [x] ~~Blocked on swc-project/swc#10878 - [ ] swc-project/swc#10930 Closes #81898

Description:
Fix a panic
Related issue:
Closes #10877