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
Argument of type typeof peg$SyntaxError is not assignable to parameter of type new (...args: any[]) => Error
Type peg$SyntaxError is missing the following properties from type Error: name, message
It worked properly when I was using peg.js
How can I fix this?
The text was updated successfully, but these errors were encountered:
This is a consequence of the nonsense we've got to deal with IE10, which doesn't support any modern forms of JS. When we fix the code generation, this will get cleaned up, so that peg$SyntaxError will be a straight subclass of Error.
In the meantime, if anyone wants to take a crack at fixing the ES5 code generation, it's here.
When using Syntax error in tests like so
I get error
It worked properly when I was using peg.js
How can I fix this?
The text was updated successfully, but these errors were encountered: