| OLD | NEW |
| 1 // Expectation for test: | 1 // Expectation for test: |
| 2 // class Base { | 2 // class Base { |
| 3 // m(x) { | 3 // m(x) { |
| 4 // print(x+1); | 4 // try { print(x+1); } finally { } |
| 5 // } | 5 // } |
| 6 // } | 6 // } |
| 7 // class Sub extends Base { | 7 // class Sub extends Base { |
| 8 // m(x) => super.m(x+10); | 8 // m(x) => super.m(x+10); |
| 9 // } | 9 // } |
| 10 // main() { | 10 // main() { |
| 11 // new Sub().m(100); | 11 // new Sub().m(100); |
| 12 // } | 12 // } |
| 13 | 13 |
| 14 function() { | 14 function() { |
| 15 var line = "" + (100 + 10 + 1); | 15 var v0 = V.Sub$(); |
| 16 V.Sub$(); | 16 V.Base.prototype.m$1.call(v0, 110); |
| 17 if (typeof dartPrint == "function") | |
| 18 dartPrint(line); | |
| 19 else if (typeof console == "object" && typeof console.log != "undefined") | |
| 20 console.log(line); | |
| 21 else if (!(typeof window == "object")) { | |
| 22 if (!(typeof print == "function")) | |
| 23 throw "Unable to print message: " + String(line); | |
| 24 print(line); | |
| 25 } | |
| 26 } | 17 } |
| OLD | NEW |