Index: pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
diff --git a/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart b/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
index d6fdc1b154be6d64db43c4be302e8df838cfefeb..57ae567823919c696797cb2cd53fdff523ff4560 100644 |
--- a/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
+++ b/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
@@ -200,7 +200,7 @@ class JavaScriptConstantCompiler extends ConstantCompilerBase |
TreeElements definitions, |
{bool isConst: true}) { |
ConstantExpression constant = nodeConstantMap[node]; |
- if (constant != null) { |
+ if (constant != null && getConstantValue(constant) != null) { |
return constant; |
} |
constant = |