Index: pkg/compiler/lib/src/js_emitter/class_stub_generator.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart b/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart |
index 2a5ded5925d03466bf44f71a49dcd6c5f3adf333..8ff364da36392c8499694096db6c99560a4ed5e4 100644 |
--- a/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart |
+++ b/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart |
@@ -20,9 +20,10 @@ class ClassStubGenerator { |
// [ constructorName, fields, |
// fields.map( |
// (name) => js('this.# = #', [name, name]))])); |
- return js('function(#) { #; }', |
+ return js('function(#) { #; this.#();}', |
[fields, |
- fields.map((name) => js('this.# = #', [name, name]))]); |
+ fields.map((name) => js('this.# = #', [name, name])), |
floitsch
2015/03/13 15:53:26
wouldn't it be better to do the deferredAction fir
|
+ namer.deferredAction]); |
} |
jsAst.Expression generateGetter(Element member, String fieldName) { |