Skip to content

Type mismatch when importing globals? #380

Closed
@binji

Description

@binji

I noticed that the spec interpreter fails this test (should be a type mismatch):

(module
  (global i32 (i32.const 0))
  (export "g" (global 0)))
(register "foo")
(assert_unlinkable
  (module (import "foo" "g" (global f32)))
  "blah")

Seems like an oversight?

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