| OLD | NEW |
| (Empty) |
| 1 // Expectation for test: | |
| 2 // main() { | |
| 3 // var x = int.parse('3'); | |
| 4 // var y = int.parse('a', onError: (e) => 'abcde'); | |
| 5 // print(x is int); | |
| 6 // print(y is String); | |
| 7 // print(y.codeUnitAt(x)); | |
| 8 // print(x is int); | |
| 9 // print(y is String); | |
| 10 // } | |
| 11 | |
| 12 function() { | |
| 13 var x = P.int_parse("3", null, null), y = P.int_parse("a", new V.main_closure(
), null); | |
| 14 P.print(typeof x === "number" && Math.floor(x) === x); | |
| 15 P.print(typeof y === "string"); | |
| 16 P.print(J.codeUnitAt$1$s(y, x)); | |
| 17 P.print(true); | |
| 18 P.print(true); | |
| 19 } | |
| OLD | NEW |