Commit 7cd76de
authored
Make table subtyping invariant (#8489)
Table subtyping for imports should be invariant according to the spec:
<img width="574" height="192" alt="image"
src="https://github.com/user-attachments/assets/dacd3d80-870a-4680-bd33-7535e70fa73f"
/>. 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](https://github.com/WebAssembly/binaryen/blob/899e44e2c3dd40795c843a91cfc326e11d64cab0/test/spec/linking.wast#L236),
upstream test:
[link](https://github.com/WebAssembly/testsuite/blob/main/linking.wast#L399-L400)
(see line 410 which differs from our copy of the test).
Part of #8261.1 parent 86f0e8a commit 7cd76de
3 files changed
+2
-394
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | 390 | | |
394 | 391 | | |
395 | 392 | | |
| |||
423 | 420 | | |
424 | 421 | | |
425 | 422 | | |
426 | | - | |
427 | 423 | | |
428 | 424 | | |
429 | 425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments