| Index: tests/compiler/dart2js/cps_ir/expected/control_flow_8.js
|
| diff --git a/tests/compiler/dart2js/cps_ir/expected/control_flow_8.js b/tests/compiler/dart2js/cps_ir/expected/control_flow_8.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bcb67d3a2d0e89951396bbeff32119472a6818aa
|
| --- /dev/null
|
| +++ b/tests/compiler/dart2js/cps_ir/expected/control_flow_8.js
|
| @@ -0,0 +1,23 @@
|
| +// Expectation for test:
|
| +// main() {
|
| +// var list = [1,2,3,4,5,6];
|
| +// for (var x in list) {
|
| +// print(x);
|
| +// }
|
| +// }
|
| +
|
| +function() {
|
| + var list = [1, 2, 3, 4, 5, 6], i = 0, line;
|
| + for (; i < 6; ++i) {
|
| + line = H.S(list[i]);
|
| + if (typeof dartPrint == "function")
|
| + dartPrint(line);
|
| + else if (typeof console == "object" && typeof console.log != "undefined")
|
| + console.log(line);
|
| + else if (!(typeof window == "object")) {
|
| + if (!(typeof print == "function"))
|
| + throw "Unable to print message: " + String(line);
|
| + print(line);
|
| + }
|
| + }
|
| +}
|
|
|