davestewart / javascript-state-machine

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

Properly extend the Error object #28

Closed justinmchase closed 5 years ago

justinmchase commented 5 years ago

This changes ParseError to properly extend Error such that it no longer modifies the global Error object.

Also, some of the tests in master were broken, I made some small changes to cause them to pass.

Fixes #27

justinmchase commented 5 years ago

Can this be deployed to npm also?

davestewart commented 5 years ago

Oh yes, I'll do that tomorrow :)

justinmchase commented 5 years ago

@davestewart I don't think this was ever deployed, would you mind doing a quick deploy?