asm-js / validator

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

Add validateAst function for validating an AST #116

Closed bgw closed 3 months ago

bgw commented 8 years ago

validate() expects a string, but other validation and compilation tools are likely to already have an ESTree-style AST. This exposes an API for validation with an Esprima-compatible AST.

For an example use-case, see eslint-plugin-asmjs.