Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart

Issue 2964683003: Split implementation of KernelToElementMapImpl (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart
diff --git a/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart b/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart
index f6f398f77c6df56cc718b95b710d3d55fc514fa6..c9cb83ec2481c8fad2c8b71623ebf82f6ce8543c 100644
--- a/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart
+++ b/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart
@@ -345,7 +345,7 @@ class RuntimeTypeGenerator {
// A superclass might already implement the Function interface. In such
// a case, we can avoid emitting the is test here.
ClassEntity superclass = _elementEnvironment.getSuperClass(cls);
- if (!_closedWorld.isSubclassOf(
+ if (!_closedWorld.isSubtypeOf(
superclass, _commonElements.functionClass)) {
_generateInterfacesIsTests(_commonElements.functionClass,
generateIsTest, generateSubstitution, generated);
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/code_emitter_task.dart ('k') | pkg/compiler/lib/src/js_model/js_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698