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