Index: pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart |
index 0538a2d3fb896da80026a38fedb8e0a678908dca..f473235edac77b7c93fa9b1d3e5e98a2237fd92d 100644 |
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart |
@@ -35,6 +35,9 @@ class ClassEmitter extends CodeEmitterHelper { |
builder.superName = superName; |
emitConstructorsForCSP(cls); |
emitFields(cls, builder); |
+ if (cls.hasRti) { |
+ builder.addField(namer.rtiFieldName); |
+ } |
emitCheckedClassSetters(cls, builder); |
emitClassGettersSettersForCSP(cls, builder); |
emitInstanceMembers(cls, builder); |
@@ -69,8 +72,8 @@ class ClassEmitter extends CodeEmitterHelper { |
ClassElement classElement = cls.element; |
- jsAst.Expression constructorAst = |
- _stubGenerator.generateClassConstructor(classElement, fieldNames); |
+ jsAst.Expression constructorAst = _stubGenerator.generateClassConstructor( |
+ classElement, fieldNames, cls.hasRti); |
jsAst.Name constructorName = namer.className(classElement); |
OutputUnit outputUnit = |