Index: sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/nsm_emitter.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/nsm_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/nsm_emitter.dart |
index 06647e8f498529d7d095155b609ec02c38175b1f..36351753178ceaa3a55188d735f60c55d933901e 100644 |
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/nsm_emitter.dart |
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/nsm_emitter.dart |
@@ -20,7 +20,7 @@ class NsmEmitter extends CodeEmitterHelper { |
void emitNoSuchMethodHandlers(AddPropertyFunction addProperty) { |
// Do not generate no such method handlers if there is no class. |
- if (compiler.codegenWorld.instantiatedClasses.isEmpty) return; |
+ if (compiler.codegenWorld.directlyInstantiatedClasses.isEmpty) return; |
String noSuchMethodName = namer.publicInstanceMethodNameByArity( |
Compiler.NO_SUCH_METHOD, Compiler.NO_SUCH_METHOD_ARG_COUNT); |