Skip to content

Table init exprs appear to be unimplemented #5628

Closed

Description

@wingo

I would like to use tables of non-nullable values but Binaryen does not appear to support them.

Relatedly, the binary format parser does not appear to support init value expressions for tables.

I would note that there would appear to be some confusion about the encoding; in WebAssembly/function-references@3eea656, not part of a PR, the encoding becomes 0x40 0x00 tabletype expr, whereas V8 does not yet expect the 0x00 intermediate byte (and it's not in https://docs.google.com/document/d/1DklC3qVuOdLHSXB5UXghM_syCh-4cMinQ50ICiXnK3Q/edit#heading=h.3i2qhyi67r2d).

Activity

  1. pufferfish101007 commented on Apr 21, 2025

    @pufferfish101007
    Contributor

    I've partially implemented this (enough to satisfy my own needs) in pufferfish101007@26fa2e2; this was my first time using C++ so it's probably not very good, but if I happen to finish it off (by patching the text-format parser and adding tests), I can open a pull request here.

  2. added a commit that references this issue on Jan 23, 2026
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