Comment #11 on issue 18394 by
sig...@google.com: language: guarantee that
rethrow preserves stack trace identity
https://code.google.com/p/dart/issues/detail?id=18394
Whats the current status on this?
The spec 2nd edition says about rethrow (17.10):
> Let f be the immediately enclosing function, and let on T catch (p1, p2)
> be the immediately enclosing catch clause (17.11).
> A rethrow statement always appears inside a catch clause, and any catch
> clause is semantically equivalent to some catch clause of the form on T
> catch
> (p1, p2). So we can assume that the rethrow is enclosed in a catch
> clause of
> that form.
> The current exception (16.9) is set to p1, the current return value
> (17.12)
> becomes undefined, and the active stack trace (17.11) is set to p2.
This last sentence reads to me as if the stack trace objects must be
identical.