davestewart / javascript-state-machine

An expressive, feature-rich, event-driven JavaScript finite-state machine
http://statemachine.davestewart.io
342 stars 25 forks source link

This project is globally setting all Error's to be "ParseError" #27

Closed justinmchase closed 5 years ago

justinmchase commented 5 years ago

In my application all basic Error objects appear to be ParseErrors.

For example:

console.log(new Error().name) // ParseError

This project is improperly constructing a ParseError object which accidentally sets the name of the global Error object to 'ParseError'.

davestewart commented 5 years ago

Crap! Sorry about that.

justinmchase commented 5 years ago

no problem, thanks for the quick response!

justinmchase commented 5 years ago

Can you please publish this fix to NPM?