Error caused by other error

Michał Wadas michalwadas at
Mon Aug 6 12:48:36 UTC 2018

Was there any proposal to introduce longer stack traces to language?

try {
catch Error('foo');
} catch (err) {
throw Error('bar'); // stack trace from caught error is lost
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list