Chromium Code Reviews| Index: tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart |
| diff --git a/tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart |
| index b807c29af41218c3047679df806bf16ac4edcbdb..abf40d0e7722838cbd836c773d1c24aa07a57b57 100644 |
| --- a/tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart |
| +++ b/tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart |
| @@ -138,6 +138,37 @@ function() { |
| v4 = V.foo("x2"); |
| return new V.Sub(v0, v1, V.foo("y3"), v2, v4, v3); |
| }"""), |
| + |
| + |
| + const TestEntry.forMethod('generative_constructor(Foo#)', """ |
| +class Bar { |
| + Bar(x, {y, z: 'z', w: '_', q}) { |
| + print(x); |
| + print(y); |
| + print(z); |
| + print(w); |
| + print(q); |
| + } |
| +} |
| +class Foo extends Bar { |
| + Foo() : super('x', y: 'y', w: 'w'); |
| +} |
| +main() { |
| + new Foo(); |
| +} |
| +""", |
| +r""" |
| +function() { |
| + var x, y, w, z, q, v0; |
| + x = "x"; |
| + y = "y"; |
| + w = "w"; |
| + z = "z"; |
| + q = null; |
| + v0 = new V.Foo(); |
| + v0.Bar$5$q$w$y$z(x, q, w, y, z); |
|
asgerf
2015/02/10 10:21:17
This is the change done by the fix:
v0.Bar$5$q$w$
|
| + return v0; |
| +}"""), |
| ]; |
| void main() { |