mirror of https://github.com/sveltejs/svelte
fix: make compiler error extend from `Error` (#14036)
We originally didn't extend from `Error` anymore because its fields are of no real value to us, and has problems with serialization in a worker context. Turns out this was a mistake, because various build tools rely on errors being thrown as something that extends Error, else they try to wrap it in their own error. We therefore revert that change while still trying to preserve most of the advantages of not extending `Error`, namely nuking the useless stack trace and making sure the message is enumerable.pull/14040/head
parent
f52a30347f
commit
1434f48f7c
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: make compiler error extend from `Error`
|
Loading…
Reference in new issue