Index: dart/pkg/dart2js_incremental/lib/caching_compiler.dart |
diff --git a/dart/pkg/dart2js_incremental/lib/caching_compiler.dart b/dart/pkg/dart2js_incremental/lib/caching_compiler.dart |
index f364acd1c99ad29a86212a04638121aae1a236dc..2b970c323c6b59c7737a0eb75b83f4145c7eb66f 100644 |
--- a/dart/pkg/dart2js_incremental/lib/caching_compiler.dart |
+++ b/dart/pkg/dart2js_incremental/lib/caching_compiler.dart |
@@ -67,8 +67,11 @@ Future<Compiler> reuseCompiler( |
JavaScriptBackend backend = compiler.backend; |
// Much like a scout, an incremental compiler is always prepared. For |
- // mixins, at least. |
- backend.emitter.oldEmitter.needsMixinSupport = true; |
+ // mixins, classes, and lazy statics, at least. |
+ backend.emitter.oldEmitter |
+ ..needsDefineClass = true |
+ ..needsMixinSupport = true |
+ ..needsLazyInitializer = true; |
Uri core = Uri.parse("dart:core"); |
return compiler.libraryLoader.loadLibrary(core).then((_) { |