return when desugaring to closures
Waldemar Horwat
waldemar at google.com
Fri Oct 10 18:06:42 PDT 2008
Brendan Eich wrote:
> On Oct 10, 2008, at 3:31 PM, Brendan Eich wrote:
>
>>> } catch (e) {
>>> alert("caught " + e + " on " + x);
>>> } finally {
>>> alert("f called finally on " + x);
>>> }
>>>
>
> Skipping the intervening active finally clauses is bad, though -- a bug
> in the current wiki rough draft that I should have mentioned. Dave will
> post a follow-up soon.
The only sensible thing would be to run all of them; local "break" even does that in ES3.
Of course that raises the question of what happens if a "break" whose matching activation frame is no longer live would generate an error but a finally clause would have caught and diverted it.
Waldemar
More information about the Es-discuss
mailing list