jison
jison copied to clipboard
[email protected] throws non-Error
When I upgrade from [email protected] to [email protected] and pass an unrecognized token to the generated parser, I get back an object which is not an Error. 0.4.16 had:
_parseError.prototype = new Error();
. 0.4.17 has something like (from memroy):
_parseError.prototype = Error;
I don't know what the returned error is an instanceof, but it's not Error.
_parseError.prototype = Error.prototye;
works for me (throws something which is an instanceof Error).
LiveScript just updated dependencies and this also hit us.
Got same in monkberry.
Wasn't this fixed with #325?
It has been fixed with #325 but has not been pushed to npm. Version 0.4.17 still has the old version of /lib/jison.js