Index: lib/compiler/implementation/js_backend/native_emitter.dart |
=================================================================== |
--- lib/compiler/implementation/js_backend/native_emitter.dart (revision 11925) |
+++ lib/compiler/implementation/js_backend/native_emitter.dart (working copy) |
@@ -150,7 +150,8 @@ |
} |
CodeBuffer fieldBuffer = new CodeBuffer(); |
- emitter.emitClassFields(classElement, fieldBuffer); |
+ List<String> checkedSetters = |
+ emitter.emitClassFields(classElement, fieldBuffer); |
CodeBuffer methodBuffer = new CodeBuffer(); |
emitter.emitInstanceMembers(classElement, methodBuffer, false); |
@@ -161,6 +162,10 @@ |
nativeBuffer.add("$defineNativeClassName('$nativeName', ["); |
nativeBuffer.add(fieldBuffer); |
nativeBuffer.add('], {'); |
+ if (!checkedSetters.isEmpty()) { |
+ nativeBuffer.add('${Strings.join(checkedSetters, ",\n")}'); |
+ nativeBuffer.add(',\n'); |
+ } |
nativeBuffer.add(methodBuffer); |
nativeBuffer.add('\n});\n\n'); |