Index: pkg/compiler/lib/src/js_emitter/type_test_registry.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/type_test_registry.dart b/pkg/compiler/lib/src/js_emitter/type_test_registry.dart |
index b9b1ba9a62e0281f0cdaa5644520786653ef53e2..ac333cc2034c84f5fcd1f804b08c87b03c34d9d1 100644 |
--- a/pkg/compiler/lib/src/js_emitter/type_test_registry.dart |
+++ b/pkg/compiler/lib/src/js_emitter/type_test_registry.dart |
@@ -53,10 +53,7 @@ class TypeTestRegistry { |
TypeChecks typeChecks = backend.rti.requiredChecks; |
Set<ClassElement> result = new Set<ClassElement>(); |
for (ClassElement cls in typeChecks) { |
- for (TypeCheck check in typeChecks[cls]) { |
- result.add(cls); |
- break; |
- } |
+ if (typeChecks[cls].isNotEmpty) result.add(cls); |
} |
return result; |
} |