Skip to content

v3.0.0

Compare
Choose a tag to compare
@dumbmatter dumbmatter released this 14 Jun 01:59
· 54 commits to master since this release

v3.0.0 brings better and more consistent error handling!

All errors from workers include the stack property, and any others (Firefox has some extra non-standard properties). Since normally stack traces are not sent from the worker to the main thread, instead we capture the stack trace in the worker and manually send it to the main thread.

Additionally, the callback passed to PromiseWorker.registerError will now recieve Error objects directly, rather than ErrorEvent objects or weird non-standard things that are kind of like ErrorEvent objects. This is a breaking change to the API, necessitating the new major version.