Closed bgw closed 3 months 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.
validate()
For an example use-case, see eslint-plugin-asmjs.
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.