Skip to content

Conversation

@mischnic
Copy link
Contributor

@mischnic mischnic commented Jul 17, 2025

Description:

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

@mischnic mischnic requested a review from a team as a code owner July 17, 2025 08:39
@changeset-bot
Copy link

changeset-bot bot commented Jul 17, 2025

⚠️ No Changeset found

Latest commit: dbfb5cb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Member

@kdy1 kdy1 left a 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!

@kdy1 kdy1 added this to the Planned milestone Jul 17, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Jul 17, 2025

CodSpeed Performance Report

Merging #10878 will not alter performance

Comparing mischnic:mischnic/obj-destructuring-for-right (dbfb5cb) with main (2b1ce3d)

Summary

✅ 140 untouched benchmarks

@mischnic mischnic mentioned this pull request Jul 17, 2025
2 tasks
@kdy1
Copy link
Member

kdy1 commented Jul 17, 2025

Github is broken? I cannot merge this PR for an unknown reason

@kdy1
Copy link
Member

kdy1 commented Jul 17, 2025

image

I'll merge this later when this issue is resolved

@kdy1 kdy1 enabled auto-merge (squash) July 17, 2025 14:28
auto-merge was automatically disabled July 17, 2025 14:32

Pull Request is not mergeable

@kdy1
Copy link
Member

kdy1 commented Jul 17, 2025

@mischnic I'm sorry, but can you create another PR if it's urgent?

@mischnic
Copy link
Contributor Author

It's not urgent, but I created a new one

@kdy1 kdy1 modified the milestones: Planned, v1.13.0 Jul 17, 2025
kdy1 pushed a commit that referenced this pull request Jul 18, 2025
)

**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
mischnic added a commit to vercel/next.js that referenced this pull request Jul 23, 2025
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
lukesandberg pushed a commit to vercel/next.js that referenced this pull request Jul 24, 2025
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
@swc-project swc-project locked as resolved and limited conversation to collaborators Aug 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

entered unreachable code: Object rest pattern should be removed by es2018::object_rest_spread

2 participants