| Index: tests/compiler/dart2js/cps_ir/expected/codeUnitAt_1.js
|
| diff --git a/tests/compiler/dart2js/cps_ir/expected/codeUnitAt_1.js b/tests/compiler/dart2js/cps_ir/expected/codeUnitAt_1.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5cd7eab5329e6d634126f16ab0e799325fa9396a
|
| --- /dev/null
|
| +++ b/tests/compiler/dart2js/cps_ir/expected/codeUnitAt_1.js
|
| @@ -0,0 +1,18 @@
|
| +// Expectation for test:
|
| +// // Constant folding
|
| +// main() {
|
| +// print('A'.codeUnitAt(0));
|
| +// }
|
| +
|
| +function() {
|
| + var v0 = "" + 65;
|
| + if (typeof dartPrint == "function")
|
| + dartPrint(v0);
|
| + else if (typeof console == "object" && typeof console.log != "undefined")
|
| + console.log(v0);
|
| + else if (!(typeof window == "object")) {
|
| + if (!(typeof print == "function"))
|
| + throw "Unable to print message: " + String(v0);
|
| + print(v0);
|
| + }
|
| +}
|
|
|