Index: pkg/compiler/lib/src/mirrors/dart2js_member_mirrors.dart |
diff --git a/pkg/compiler/lib/src/mirrors/dart2js_member_mirrors.dart b/pkg/compiler/lib/src/mirrors/dart2js_member_mirrors.dart |
index 88ffbf917a737d1d336e77e382f94de894bc7162..82785255d8fa3c8794de5a1e7777821b26d83a8d 100644 |
--- a/pkg/compiler/lib/src/mirrors/dart2js_member_mirrors.dart |
+++ b/pkg/compiler/lib/src/mirrors/dart2js_member_mirrors.dart |
@@ -190,8 +190,7 @@ class Dart2JsParameterMirror extends Dart2JsMemberMirror |
// TODO(johnniwinther): Get the constant from the [TreeElements] |
// associated with the enclosing method. |
ParameterElement parameter = _element; |
- ConstantExpression constant = |
- mirrorSystem.compiler.constants.getConstantForVariable(parameter); |
+ ConstantExpression constant = parameter.constant; |
assert(invariant(parameter, constant != null, |
message: "Missing constant for parameter " |
"$parameter with default value.")); |