Descriptiondart2js CPS: Support try/catch/finally.
Support try/catch/finally by pretending it is macro-expanded into
try/catch and try/finally:
try S0 catch (ex, st) S1 finally S2
==>
try { try S0 catch (ex, st) S1 } finally S2
The duplicated code for try/catch and try/finally is abstracted into a
function parameterized over translations for all the parts that
differed.
R=asgerf@google.com
Committed: https://github.com/dart-lang/sdk/commit/b9192ab9e283a3ab6dc64d3467cd4a5741e3673b
Patch Set 1 #Patch Set 2 : Incorporate review comments. #Patch Set 3 : Merge, and fix a test expectation. #
Messages
Total messages: 6 (1 generated)
|