Skip to content

components: Validation of the start section conditionally defines the result as a value #604

@alexcrichton

Description

@alexcrichton

Currently values are conditionally defined in a module whether or not the start function returns a value. This is a little surprising to me (question for the spec layer less so here) that unit is specifically ignored, so we may want to confirm upstream that unit, and I guess only unit is supposed to be ignored?

Additionally the check here isn't 100% right in the sense that if a TypeId is used which points to unit (as-is the case today due to #600) then a value is defined, meaning that a value definition happens depending on how the function type itself is defined.

Metadata

Metadata

Assignees

Labels

component-modelIssues related to the implementation of the component modelwasmparserRelated to the binary format of WebAssembly (wasmparser)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions