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