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