| OLD | NEW |
| 1 // Expectation for test: | 1 // Expectation for test: |
| 2 // var foo = 42; | 2 // var foo = 42; |
| 3 // main() { print(foo); } | 3 // main() { print(foo); } |
| 4 | 4 |
| 5 function() { | 5 function() { |
| 6 var v0 = $.foo, line = v0 === 0 ? 1 / v0 < 0 ? "-0.0" : "" + v0 : "" + v0; | 6 var line = H.S($.foo); |
| 7 if (typeof dartPrint == "function") | 7 if (typeof dartPrint == "function") |
| 8 dartPrint(line); | 8 dartPrint(line); |
| 9 else if (typeof console == "object" && typeof console.log != "undefined") | 9 else if (typeof console == "object" && typeof console.log != "undefined") |
| 10 console.log(line); | 10 console.log(line); |
| 11 else if (!(typeof window == "object")) { | 11 else if (!(typeof window == "object")) { |
| 12 if (!(typeof print == "function")) | 12 if (!(typeof print == "function")) |
| 13 throw "Unable to print message: " + String(line); | 13 throw "Unable to print message: " + String(line); |
| 14 print(line); | 14 print(line); |
| 15 } | 15 } |
| 16 } | 16 } |
| OLD | NEW |