Index: lib/compiler/implementation/js_backend/emitter.dart |
diff --git a/lib/compiler/implementation/js_backend/emitter.dart b/lib/compiler/implementation/js_backend/emitter.dart |
index cb44ca9f7dcf5a0ba382594832b1e891ce25eb08..3dd2229ed9ea577e7249e6f20e7a9df8ebfa70bd 100644 |
--- a/lib/compiler/implementation/js_backend/emitter.dart |
+++ b/lib/compiler/implementation/js_backend/emitter.dart |
@@ -392,7 +392,7 @@ function(collectedClasses) { |
bool instanceFieldNeedsSetter(Element member) { |
assert(member.kind === ElementKind.FIELD); |
- return (member.modifiers === null || !member.modifiers.isFinal()) |
+ return (member.modifiers === null || !member.modifiers.isFinalOrConst()) |
&& compiler.codegenWorld.hasInvokedSetter(member, compiler); |
} |