Closed voxpelli closed 2 years ago
I opted for the "fully new version" and released a module with a ponyfill and some VError-inspired helpers: https://github.com/voxpelli/pony-cause
Closing this as there has been no interest and that module answered this from my point of view.
A new proposal for a
Error#cause
is at stage 3 in TC39 and since this module also uses.cause
for a very similar purpose this poses both an opportunity and a compatibility issue: https://github.com/tc39/proposal-error-causeNot sure how to best handle this for VError, maybe a fully new version that polyfills and extends the standardized
Error#cause
?