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

Improve error message: too many / too few parameters to function call in call_import #31

Closed
jfbastien opened this issue Jan 30, 2016 · 0 comments

Comments

@jfbastien
Copy link
Member

It would be nice if this error message also printed out the import's name:

foo.wast:72385:11: too many parameters to function in call_import. got 4, expected 3
foo.wast:72398:9: too few parameters to function in call_import. got 1, expected 2

Right now I hack around it with grep / cut / xargs / head / tail and it's ugly :-)

@binji binji closed this as completed in 146558c Jan 30, 2016
wenyongh pushed a commit to wenyongh/wabt that referenced this issue Jan 30, 2024
* Make "sandbox" a WABT feature.

Instead of having an ad-hoc option just in wasm2c, this makes it
possible to specify sandbox or no-sandbox mode across all wabt tools.
(Most tools are currently not sensitive to it.)

This changes how the option is given on the command line.
Instead of writing --no-sandbox, now write --disable-sandbox.

* In wasm2c: no-sandbox -> sandbax.

* Fix help tests.

* Fix tests that knew about --no-sandbox.
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

1 participant