Skip to content

[interpreter] Local variable index is incorrect with function type use #1212

Closed

Description

@binji

The interpreter has the wrong result for the following test:

(module
  (type $sig (func (param i32) (result i32)))
  (func (export "test") (type $sig)
    (local $var i32)
    (local.get $var))
)

(assert_return (invoke "test" (i32.const 42)) (i32.const 0))

This function should return 0, not 42.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions