Skip to content
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 panic with unicode characters #5674

Merged
merged 5 commits into from
Sep 27, 2024

Conversation

sapphi-red
Copy link
Contributor

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

This PR reverts updates of unicode related rust packages.
It seems after updating them, swc panics at this line with width 3 given for non-narrow character.
https://github.com/swc-project/swc/blob/14cfd70ee00938497ce6b59f68332f9daa17378b/crates/swc_common/src/syntax_pos.rs#L702

Copy link

vercel bot commented Sep 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 4:44am

@sapphi-red sapphi-red changed the title fix panic with unicode characters Fix panic with unicode characters Sep 24, 2024
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.04%. Comparing base (6d75b6d) to head (db9bc66).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5674   +/-   ##
=======================================
  Coverage   99.04%   99.04%           
=======================================
  Files         242      242           
  Lines        9352     9352           
  Branches     2473     2473           
=======================================
  Hits         9263     9263           
  Misses         58       58           
  Partials       31       31           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this, hope they fix this upstream soon. Kudos for adding a test so that we know when we can upgrade!

@lukastaegert lukastaegert added this pull request to the merge queue Sep 27, 2024
Merged via the queue into rollup:master with commit 524670d Sep 27, 2024
38 checks passed
Copy link

This PR has been released as part of rollup@4.22.5. You can test it via npm install rollup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants