Skip to content

Make table subtyping invariant#8489

Merged
stevenfontanella merged 1 commit intomainfrom
table-invariant
Mar 25, 2026
Merged

Make table subtyping invariant#8489
stevenfontanella merged 1 commit intomainfrom
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.

Base automatically changed from global-validation to main March 25, 2026 20:48
@stevenfontanella stevenfontanella requested a review from a team as a code owner March 25, 2026 20:48
@stevenfontanella stevenfontanella enabled auto-merge (squash) March 25, 2026 20:52
@stevenfontanella stevenfontanella removed request for a team and kripken March 25, 2026 20:55
@stevenfontanella stevenfontanella merged commit 7cd76de into main Mar 25, 2026
16 checks passed
@stevenfontanella stevenfontanella deleted the table-invariant branch March 25, 2026 21:33
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