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