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

Why support -fwasm-exceptions require exception-handling feature to be set? #2

Open
trzeciak opened this issue Jun 27, 2024 · 1 comment

Comments

@trzeciak
Copy link

Hi @RReverser,
I have a question about to support -fwasm-exceptions, initiali it was introduced in this issue: GoogleChromeLabs/wasmbin/issues/7 and implemented in this MR: GoogleChromeLabs/wasmbin/pull/9.
And I came here from this issue: getsentry/symbolicator/issues/969.

I saw that this requires the exception-handling feature to be set, the question is:

Why support -fwasm-exceptions require exception-handling feature to be set?

Could it be because:

  • this feature breaks current existing features?
  • most people don't need it anyway, so would it unnecessarily increase the binary file size? (I checked and the difference is insignificant)
  • or maybe something else?

I would like the symbolicator to handle -fwasm-exceptions by default, so I would like to ask your advice whether it is better to add a declaration of this feature in the symbolicator repo, or maybe it is possible to add it without the flag and upgrade the version in the symbolicator repo.

PS: Thank you for developing this tool, when I saw the error 0xD I couldn't help but laugh → I thought I would have to dig for a long time, but thanks to you everything went smoothly!

@RReverser
Copy link
Owner

Oh wow, sorry, I missed this entirely as I was on vacation back then.

Basically, any features that are in proposal stage rather than merged into Wasm spec are intentionally kept under Cargo feature flags to note that they might be unstable.

As soon as they are merged into the Wasm spec, it's okay to not require features for them anymore.

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

No branches or pull requests

2 participants