You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it? Might that human-readable message change in the future?
If I've correctly understood, #33 plans to introduce machine-readable identifiers for the specific error types, which might be a better way to solve this.
The text was updated successfully, but these errors were encountered:
You've understood correctly. The messages are strictly for human consumption, and may change arbitrarily in a patch release. If you'd like the functionality that you've described, someone will need to implement #33. Before doing all that work, however, it would be great to update this with ES6 support. There are many more validations we need to make. For instance, the only valid MetaProperty node has a meta of {type: "Identifier", name: "new"} and a property of {type: "Identifier", name: "target"}.
I'm writing a program that only needs to check for validity of an AST subtree, so I'm using
esvalid.errors(partOfAst)
and stripping all errors with the message "given AST node should be of type Program". I've pinned esvalid as a specific version, because I'm unsure whether that's part of the public API.Is it? Might that human-readable message change in the future?
If I've correctly understood, #33 plans to introduce machine-readable identifiers for the specific error types, which might be a better way to solve this.
The text was updated successfully, but these errors were encountered: