| Index: tests/compiler/dart2js/cps_ir/expected/supercall_1.js
|
| diff --git a/tests/compiler/dart2js/cps_ir/expected/supercall_1.js b/tests/compiler/dart2js/cps_ir/expected/supercall_1.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..74274abc0dcd7523e4978257984d032a812dd107
|
| --- /dev/null
|
| +++ b/tests/compiler/dart2js/cps_ir/expected/supercall_1.js
|
| @@ -0,0 +1,26 @@
|
| +// Expectation for test:
|
| +// class Base {
|
| +// m(x) {
|
| +// print(x+1);
|
| +// }
|
| +// }
|
| +// class Sub extends Base {
|
| +// m(x) => super.m(x+10);
|
| +// }
|
| +// main() {
|
| +// new Sub().m(100);
|
| +// }
|
| +
|
| +function() {
|
| + var v0 = "" + (100 + 10 + 1);
|
| + V.Sub$();
|
| + 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);
|
| + }
|
| +}
|
|
|