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

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

Issue 873373006: Use [ClassElement.isSubclassOf] instead of [World.isSubClassOf]. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/type_test_generator.dart
diff --git a/pkg/compiler/lib/src/js_emitter/type_test_generator.dart b/pkg/compiler/lib/src/js_emitter/type_test_generator.dart
index 5ff5e0071ae2ec53e41fa8566c2a295be6037a0e..60ae6f005805499e7b5352b228b2971c900f9bbd 100644
--- a/pkg/compiler/lib/src/js_emitter/type_test_generator.dart
+++ b/pkg/compiler/lib/src/js_emitter/type_test_generator.dart
@@ -64,7 +64,7 @@ class TypeTestGenerator {
/// TODO(herhut): Generate tests for native classes dynamically, as well.
void generateIsTest(Element other) {
if (classElement.isNative ||
- !compiler.world.isSubclassOf(classElement, other)) {
+ !classElement.isSubclassOf(other)) {
result.properties[namer.operatorIs(other)] = js('1');
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698