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: don't panic when wasm bytecheck faild #9803

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

hardfist
Copy link
Contributor

Description:
Currently when wasm plugin is not compatible with swc version it will panic which cause it hard to report useful error info from caller except use catch_unwind.
change the behavior to not panic and let the user to decide error handling

BREAKING CHANGE:
No

Related issue (if exists):

@hardfist hardfist requested a review from a team as a code owner December 18, 2024 16:39
Copy link

changeset-bot bot commented Dec 18, 2024

🦋 Changeset detected

Latest commit: 0472c3c

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

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

@hardfist hardfist force-pushed the yj/fix-plugin-panic branch from e7607dd to 632d44f Compare December 18, 2024 16:52
kwonoj
kwonoj previously approved these changes Dec 18, 2024
@hardfist
Copy link
Contributor Author

https://github.com/swc-project/swc/actions/runs/12397595140/job/34608511623?pr=9803#step:13:3559
it seems the test failing cause removing the extra comma(don't know why there's a extra comma here)

Copy link

codspeed-hq bot commented Dec 18, 2024

CodSpeed Performance Report

Merging #9803 will not alter performance

Comparing hardfist:yj/fix-plugin-panic (0472c3c) with main (c2696db)

Summary

✅ 194 untouched benchmarks

@kdy1 kdy1 requested a review from a team as a code owner December 18, 2024 20:23
@kdy1 kdy1 merged commit c81be2e into swc-project:main Dec 18, 2024
19 checks passed
@kdy1 kdy1 added this to the Planned milestone Dec 18, 2024
@kdy1 kdy1 modified the milestones: Planned, v1.10.2 Dec 26, 2024
@swc-project swc-project locked as resolved and limited conversation to collaborators Jan 26, 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.

None yet

3 participants