Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Section ordering issue in global.wast test #433

@eqrion

Description

@eqrion

See https://github.com/WebAssembly/gc/blob/main/test/core/global.wast#L622.

(module
  ...
  (global $gn funcref (ref.null func))
  ...
  (table $t 10 funcref (global.get $gn))
)

This module is supposed to be valid, and has a table with a default value expression referencing a global. However the global section comes after the table section, so when validating the global.get in the table, $gn has not been decoded yet.

Also, it looks like the text format for table default value initializers is not written yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions