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

Unified Diff: lib/compiler/implementation/js_backend/emitter.dart

Issue 10879003: Const variables handled as final (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comment shortened Created 8 years, 4 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698