镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

WebAssembly Core 3: reconcile element and reference import subtyping #389

Closed

Description

@chrisbbreuer

Parent: #366
Related: #263, #267, #134

The exact Core 3 audit found reference-subtyping gaps at element/table and immutable-global link boundaries.

Acceptance:

  • Derive and validate the exact reference type of legacy and expression element segments.
  • Accept valid initialization of non-nullable function-reference tables while retaining null/defaultability rejection rules.
  • Apply covariance to immutable reference globals at link time and keep mutable globals invariant.
  • Preserve canonical recursive type identity across instances.
  • Pass the affected exact commands in elem.wast and linking.wast with zero regressions.
  • Add focused validation/link units and bounded CI witnesses.

Completion evidence:

  • Implementation: 7b393b9e
  • Bounded CI: 0b23e3fe
  • Exact elem.wast: 151/151 applicable, zero fail/N/A/runner
  • Exact linking.wast: 163/163 applicable, zero fail/N/A/runner
  • Full pinned Core 3 audit: 63,964/63,964 applicable, 1,235 text-format N/A, zero fail/runner
  • Terminal inventory and matrix: aa70d874

Activity

  1. chrisbbreuer commented on Jul 20, 2026

    @chrisbbreuer
    MemberAuthor

    Completed and published on main. Legacy function-index segments now carry exact non-null (ref func) types; immutable cross-instance global imports use canonical covariant reference matching while mutable imports remain invariant. The focused files and the complete 258-file Core 3 audit are green.

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