asm-js / validator

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

Make validator accept negative literals in variable declarations and return values #126

Open gasman opened 7 years ago

gasman commented 7 years ago

The parser handles negative literals as a unary minus expression rather than a literal, and so we need to match UnaryExpression as an extra case.