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 da3efb5da069f94b0da1c6ec0462ab93b50783e3..36bd7685b5d775a19384dd664d992b539edb4680 100644 |
--- a/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
+++ b/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
@@ -132,11 +132,16 @@ class JavaScriptConstantCompiler extends ConstantCompilerBase |
element, definitions, |
isConst: isConst, checkType: checkType); |
if (!isConst && value == null) { |
- lazyStatics.add(element); |
+ registerLazyStatic(element); |
} |
return value; |
} |
+ @override |
+ void registerLazyStatic(FieldElement element) { |
+ lazyStatics.add(element); |
+ } |
+ |
void addCompileTimeConstantForEmission(ConstantValue constant) { |
compiledConstants.add(constant); |
} |