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

calling function with 0 arguments does not seem to be working in some cases #12

Open
jotaalvim opened this issue Feb 25, 2025 · 0 comments

Comments

@jotaalvim
Copy link

hey,
this tool is really cool, but I think I found a bug and decided to let you know:

Consider the normal function add:
(func $add (export "add") (param $a i32) (param $b i32) (result i32) get_local $a get_local $b i32.add )

Consider the falling function that calls the add function:

(func (export "calladd") (result i32) i32.const 100 i32.const 102 call $add )

I made a second function that calls add, but the console does not let me to calladd(), however when I pass one or more arguments it seems to be actually calling the calladd function, like calladd(345) works.

I think this is not the correct behavior since the function is not expecting any arguments at all.

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