asm-js / validator

A reference validator for asm.js.
Apache License 2.0
1.78k stars 154 forks source link

Accept comma-separated global variable declarations. #63

Open cscott opened 11 years ago

cscott commented 11 years ago

The production for Global Variable Type Annotations in section 5.5 says:

A global program variable is initialized to a literal: var x:Identifier = n:NumericLiteral;

but emscripten also generates the "var x:Identifier = n:NumericLiteral, y:Identifier = ... ;" form.

ghost commented 9 years ago

Agreed, Odin accepts comma-separated.