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 4fc5ab6dd7ac8d1f0325182c82a61d3fa1575b79..8b20e2de9d3e8117878785ec9eceeb5a282d0d4a 100644 |
--- a/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart |
+++ b/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart |
@@ -68,7 +68,7 @@ class RuntimeTypeGenerator { |
/// native classes. |
/// TODO(herhut): Generate tests for native classes dynamically, as well. |
void generateIsTest(Element other) { |
- if (classElement.isNative || |
+ if (classElement.isJsInterop || classElement.isNative || |
!classElement.isSubclassOf(other)) { |
result.properties[namer.operatorIs(other)] = js('1'); |
} |