Validates a JavaScript AST according to the Mozilla Parser API specification