Skip to content

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

@jotaalvim

Description

@jotaalvim

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions