| Index: tests/compiler/dart2js/cps_ir/expected/argument_refinement_27.js
|
| diff --git a/tests/compiler/dart2js/cps_ir/expected/argument_refinement_27.js b/tests/compiler/dart2js/cps_ir/expected/argument_refinement_27.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..484f6a1b15a7f09b3b288483d7fcd0fb1ebb9800
|
| --- /dev/null
|
| +++ b/tests/compiler/dart2js/cps_ir/expected/argument_refinement_27.js
|
| @@ -0,0 +1,19 @@
|
| +// Expectation for test:
|
| +// main() {
|
| +// var x = int.parse('3');
|
| +// var y = int.parse('a', onError: (e) => 'abcde');
|
| +// print(x is int);
|
| +// print(y is String);
|
| +// print(y.codeUnitAt(x));
|
| +// print(x is int);
|
| +// print(y is String);
|
| +// }
|
| +
|
| +function() {
|
| + var x = P.int_parse("3", null, null), y = P.int_parse("a", new V.main_closure(), null);
|
| + P.print(typeof x === "number" && Math.floor(x) === x);
|
| + P.print(typeof y === "string");
|
| + P.print(J.codeUnitAt$1$s(y, x));
|
| + P.print(true);
|
| + P.print(true);
|
| +}
|
|
|