Skip to content

Handle memory being None when realloc requires it. #2503

@michael-weigelt

Description

@michael-weigelt

The spec 1, 2 states that if the canonopt realloc is given, then the canonopt memory is required. In the 64bit component model, the dependency is obvious because the signature of realloc depends on the address type of memory.

Currently, all address types are assumed to be i32, and at least the realloc implementation does not require a memory to be passed. Requiring it may be a breaking change.

Source discussion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions