Skip to content

Typecheck declare and actual inline module types#37

Merged
alexcrichton merged 2 commits intobytecodealliance:mainfrom
alexcrichton:validate-module-types
Jul 10, 2020
Merged

Typecheck declare and actual inline module types#37
alexcrichton merged 2 commits intobytecodealliance:mainfrom
alexcrichton:validate-module-types

Conversation

@alexcrichton
Copy link
Member

This should finish the initial implementation of the module linking
proposal in this repository. The last piece that I can think of was to
validate the declared module types (the module section) against the
actual module types (the module code section).

This should finish the initial implementation of the module linking
proposal in this repository. The last piece that I can think of was to
validate the declared module types (the module section) against the
actual module types (the module code section).
Copy link
Contributor

@yurydelendik yurydelendik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. It is nice to see documentation (or TODO comments) on how instance and module types are compared. Currently, we assume that we have named imports/exports and their order shall match when two types are compared.

@alexcrichton
Copy link
Member Author

Ok I'm gonna go ahead and merge this. I'll need to rebase #40 anyway for this and I'll make sure to add docs there as part of the rebase.

@alexcrichton alexcrichton merged commit f2f0d8d into bytecodealliance:main Jul 10, 2020
@alexcrichton alexcrichton deleted the validate-module-types branch July 10, 2020 19:10
dhil added a commit to dhil/wasm-tools that referenced this pull request Feb 6, 2023
…erences

Update function-references branch, fix tests, update style
dhil added a commit to dhil/wasm-tools that referenced this pull request Dec 4, 2023
Merge up to wasm-tools-1.0.54 release.
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