| OLD | NEW |
| (Empty) | |
| 1 // Expectation for test: |
| 2 // main() { |
| 3 // var list = [1, 2, 3]; |
| 4 // list[1] = 6; |
| 5 // print(list); |
| 6 // } |
| 7 |
| 8 function() { |
| 9 var list = [1, 2, 3], v0; |
| 10 list[1] = 6; |
| 11 v0 = P.IterableBase_iterableToFullString(list, "[", "]"); |
| 12 if (typeof dartPrint == "function") |
| 13 dartPrint(v0); |
| 14 else if (typeof console == "object" && typeof console.log != "undefined") |
| 15 console.log(v0); |
| 16 else if (!(typeof window == "object")) { |
| 17 if (!(typeof print == "function")) |
| 18 throw "Unable to print message: " + String(v0); |
| 19 print(v0); |
| 20 } |
| 21 } |
| OLD | NEW |