close
Skip to content

[spec] Function validation regression? #2200

Description

@zilinc

I'm not entirely sure about it, but maybe #2162 has introduced some regression.

A sample module is:

(module (start $f) (func $f (drop (ref.func $f))))

which is supposed to fail validation, due to undeclared function reference. I think in Module_ok, when checking the bodies of the functions in the module, it's under a wrong context with more refs.

In my animated meta-interpreter,

(module (func $f (drop (ref.func $f))))

fails as expected, but the above is not rejected. Of course it could be an error in my manual animation of the circular Module_ok rule, but still I don't see in the declarative rule how it can be rejected.

@rossberg Any thoughts?

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