Index: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
index 3d8ea6ccb2fd595e44aedfbe34723a34a92d08cb..c22eb0b190f7e4f876326f81060e6dc9b91aed7b 100644 |
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
@@ -1891,7 +1891,8 @@ function(originalDescriptor, name, holder, isStatic, globalFunctionsAccess) { |
// specific to the class. For now, not supported for native classes and |
// native elements. |
ClassElement cls = element.enclosingClassOrCompilationUnit.declaration; |
- if (compiler.codegenWorld.directlyInstantiatedClasses.contains(cls) && |
+ if (compiler.codegenWorldBuilder.directlyInstantiatedClasses |
+ .contains(cls) && |
!backend.isNative(cls) && |
compiler.deferredLoadTask.outputUnitForElement(element) == |
compiler.deferredLoadTask.outputUnitForElement(cls)) { |