jison icon indicating copy to clipboard operation
jison copied to clipboard

[email protected] throws non-Error

Open ericprud opened this issue 8 years ago • 4 comments

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).

ericprud avatar May 23 '16 08:05 ericprud

LiveScript just updated dependencies and this also hit us.

summivox avatar Jun 08 '16 22:06 summivox

Got same in monkberry.

antonmedv avatar Jun 15 '16 11:06 antonmedv

Wasn't this fixed with #325?

GerHobbelt avatar Sep 19 '16 01:09 GerHobbelt

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

enwin avatar Jan 11 '17 14:01 enwin