Index: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart |
index d573580ba52a0dbae6c201f292ef5f1ab4fba68f..1462ee77e74b4c763223f0ffcbc47645cc9cdde9 100644 |
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart |
@@ -551,7 +551,7 @@ class OldEmitter implements Emitter { |
if (fields != null) { |
for (Element element in fields) { |
compiler.withCurrentElement(element, () { |
- ConstantValue constant = handler.getInitialValueFor(element).value; |
+ ConstantValue constant = handler.getInitialValueFor(element); |
parts.add(buildInitialization(element, constantReference(constant))); |
}); |
} |