Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1151)

Unified Diff: pkg/compiler/lib/src/js_emitter/class_stub_generator.dart

Issue 1007873002: Add call to deferred action method in csp constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698