Skip to content

Make table subtyping invariant#8489

Open
stevenfontanella wants to merge 1 commit intoglobal-validationfrom
table-invariant
Open

Make table subtyping invariant#8489
stevenfontanella wants to merge 1 commit intoglobal-validationfrom
table-invariant

Conversation

@stevenfontanella
Copy link
Member

@stevenfontanella stevenfontanella commented Mar 18, 2026

Table subtyping for imports should be invariant according to the spec:
image. This makes sense because the exporter might write the supertype and the importer may later try to read a subtype which would be wrong.

The other copy of linking.wast is no longer relevant and doesn't pass with these changes. Our copy: link, upstream test: link (see line 410 which differs from our copy of the test).

Part of #8261.

@stevenfontanella stevenfontanella marked this pull request as ready for review March 18, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants