| Index: tests/compiler/dart2js/cps_ir/expected/basic_14.js
|
| diff --git a/tests/compiler/dart2js/cps_ir/expected/basic_14.js b/tests/compiler/dart2js/cps_ir/expected/basic_14.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..39a79646e1874b09ef739b2f3974b6756c48d3eb
|
| --- /dev/null
|
| +++ b/tests/compiler/dart2js/cps_ir/expected/basic_14.js
|
| @@ -0,0 +1,17 @@
|
| +// Expectation for test:
|
| +// var foo = 0;
|
| +// main() { print(foo = 42); }
|
| +
|
| +function() {
|
| + var v0 = "" + 42;
|
| + $.foo = 42;
|
| + 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);
|
| + }
|
| +}
|
|
|