Skip to content

Clarification regarding value parameter for WebAssembly.Global etc.  #1660

Open
@manoskouk

Description

@manoskouk

Please confirm if the intended behavior for reference-typed WebAssembly.Global is the following:

  • new WebAssembly.Global({ "value": "anyfunc", "mutable": true}).value == null
  • new WebAssembly.Global({ "value": "anyfunc", "mutable": true}, undefined) throws TypeError
  • new WebAssembly.Global({ "value": "externref", "mutable": true}).value == undefined

and the omitted/undefined value behaves the same for table.new, table.set, table.grow.

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