| Index: tests/compiler/dart2js/cps_ir/expected/closures_10.js
|
| diff --git a/tests/compiler/dart2js/cps_ir/expected/closures_10.js b/tests/compiler/dart2js/cps_ir/expected/closures_10.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a628815df41316abec910f7180dc616d347b8b12
|
| --- /dev/null
|
| +++ b/tests/compiler/dart2js/cps_ir/expected/closures_10.js
|
| @@ -0,0 +1,21 @@
|
| +// Expectation for test:
|
| +// class A {
|
| +// a() => 1;
|
| +// b() => () => a();
|
| +// }
|
| +// main() {
|
| +// print(new A().b()());
|
| +// }
|
| +
|
| +function() {
|
| + var line = H.S(new V.A_b_closure(V.A$()).call$0());
|
| + 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);
|
| + }
|
| +}
|
|
|