Has there been any discussion about rethrowing exceptions such that they
retain the original context?
try {
throws();
} catch (e) {
if (e instanceof SomeError) {
// handle it
}
rethrow e;
}
Or is this been out side the spec because stack traces in general are
outside the spec?
It isn't really clear if "throw e;" should have the original stack trace or
a new stack trace attached due to the throw.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss