drom / wast-spec

WebAssembly AST specification
MIT License
9 stars 2 forks source link

Items in param #9

Closed wanderer closed 8 years ago

wanderer commented 8 years ago

so item here should be a type

{
  kind: 'param',
  items: [ <item> ]
}

would this make sense?

{
  kind: 'param',
  items: [ <type> ]
}
drom commented 8 years ago

To my knowledge param in WebAssembly present in several forms:

(param) -- empty form: (param $x i32) -- id and type: (param i32) -- single type only (param i32 i32) -- multiple types

We have to accommodate all of them.

wanderer commented 8 years ago

ah yep your right