Index: sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart |
index 5af1cde6c8c8197dd48214b6734f128c8483cb34..c4703f7ec6513c50dd22559a427e1ceeacb7ecc2 100644 |
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart |
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart |
@@ -1722,7 +1722,7 @@ class OldEmitter implements Emitter { |
// native elements. |
ClassElement cls = |
element.enclosingClassOrCompilationUnit.declaration; |
- if (compiler.codegenWorld.instantiatedClasses.contains(cls) |
+ if (compiler.codegenWorld.directlyInstantiatedClasses.contains(cls) |
&& !cls.isNative) { |
owner = cls; |
} |