| Index: pkg/compiler/lib/src/js_backend/backend.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
|
| index a7d67ddae81557e377bf87e4ff3c8068ed61cfeb..90cd7ce8b0d14e705b600f8ad31ff878dadba95f 100644
|
| --- a/pkg/compiler/lib/src/js_backend/backend.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/backend.dart
|
| @@ -1463,8 +1463,9 @@ class JavaScriptBackend extends Backend {
|
| return const CodegenImpact();
|
| }
|
| if (kind.category == ElementCategory.VARIABLE) {
|
| + VariableElement variableElement = element;
|
| ConstantValue initialValue =
|
| - constants.getConstantValueForVariable(element);
|
| + constants.getConstantValue(variableElement.constant);
|
| if (initialValue != null) {
|
| registerCompileTimeConstant(initialValue, work.registry);
|
| addCompileTimeConstantForEmission(initialValue);
|
|
|