| OLD | NEW |
| (Empty) |
| 1 // Expectation for test: | |
| 2 // main() { | |
| 3 // var x = int.parse('1233'); | |
| 4 // var y = int.parse('1234'); | |
| 5 // print(x / 2); | |
| 6 // print(x is num); | |
| 7 // print(y is num); | |
| 8 // print(x.compareTo(y)); | |
| 9 // print(y is num); | |
| 10 // } | |
| 11 | |
| 12 function() { | |
| 13 var x = P.int_parse("1233", null, null), y = P.int_parse("1234", null, null),
v0; | |
| 14 if (typeof x !== "number") | |
| 15 return x.$div(); | |
| 16 P.print(x / 2); | |
| 17 P.print(true); | |
| 18 v0 = typeof y === "number"; | |
| 19 P.print(v0); | |
| 20 if (!v0) | |
| 21 throw H.wrapException(H.argumentErrorValue(y)); | |
| 22 P.print(x < y ? -1 : x > y ? 1 : x === y ? x === 0 ? 1 / x < 0 === (y === 0 ?
1 / y < 0 : y < 0) ? 0 : 1 / x < 0 ? -1 : 1 : 0 : isNaN(x) ? isNaN(y) ? 0 : 1 :
-1); | |
| 23 P.print(true); | |
| 24 } | |
| OLD | NEW |