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 16ada26bf3693b0fc94edc5630d3698a39a9d316..3974b9fd0c7d076030e9544af440d3b6ab3f5869 100644 |
--- a/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart |
+++ b/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart |
@@ -312,13 +312,13 @@ class RuntimeTypeGenerator { |
backend.rti.getSubstitution(cls, element.typeDeclaration); |
if (substitution != null) { |
computeTypeVariable = js( |
- r'#.apply(null, this.$builtinTypeInfo)', |
+ r'#.apply(null, this.$ti)', |
backend.rtiEncoder |
.getSubstitutionCodeForVariable(substitution, index)); |
} else { |
// TODO(ahe): These can be generated dynamically. |
computeTypeVariable = js( |
- r'this.$builtinTypeInfo && this.$builtinTypeInfo[#]', |
+ r'this.$ti && this.$ti[#]', |
js.number(index)); |
} |
jsAst.Expression convertRtiToRuntimeType = backend.emitter |