Chromium Code Reviews| Index: lib/compiler/implementation/js_backend/native_emitter.dart |
| diff --git a/lib/compiler/implementation/js_backend/native_emitter.dart b/lib/compiler/implementation/js_backend/native_emitter.dart |
| index 20aff607b20fe08fc785842236832f7c616fb689..bfbfe627c53b4ccbb69550cb013277d154730e97 100644 |
| --- a/lib/compiler/implementation/js_backend/native_emitter.dart |
| +++ b/lib/compiler/implementation/js_backend/native_emitter.dart |
| @@ -113,7 +113,7 @@ function(cls, fields, methods) { |
| } |
| for (Element member in classElement.localMembers) { |
| - if (member.isInstanceMember()) { |
| + if (member.isInstanceMember() && !member.isConstructor()) { |
|
ahe
2012/08/15 16:10:30
A constructor should not be an instance member.
|
| emitter.addInstanceMember(member, defineInstanceMember); |
| } |
| } |