Index: pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart |
diff --git a/pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart b/pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart |
index 86c95ccf26d7278e7ca0574aab25ee5e021db4a0..51ab110822a6f9bfe708270b64ed7876c4da2064 100644 |
--- a/pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart |
+++ b/pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart |
@@ -220,7 +220,9 @@ abstract class Dart2JsElementMirror extends Dart2JsDeclarationMirror { |
mirrorSystem.compiler.commentMap[metadata.beginToken]); |
metadata.ensureResolved(mirrorSystem.compiler); |
_metadata.add(_convertConstantToInstanceMirror( |
- mirrorSystem, metadata.constant, metadata.constant.value)); |
+ mirrorSystem, metadata.constant, |
+ mirrorSystem.compiler.constants.getConstantValue( |
+ metadata.constant))); |
} |
_appendCommentTokens(mirrorSystem.compiler.commentMap[getBeginToken()]); |
} |