When I upgrade from jison@0.4.16 to jison@0.4.17 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).
When I upgrade from jison@0.4.16 to jison@0.4.17 and pass an unrecognized token to the generated parser, I get back an object which is not an Error. 0.4.16 had:
. 0.4.17 has something like (from memroy):
I don't know what the returned error is an instanceof, but it's not Error.
works for me (throws something which is an instanceof Error).