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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_emitter/container_builder.dart

Issue 62373009: Field property naming fix - issues 14096, 14806 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review changes Created 7 years, 1 month 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
Index: sdk/lib/_internal/compiler/implementation/js_emitter/container_builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/container_builder.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/container_builder.dart
index 882e0aa8493029860a8eb7a452a38e37eff576a6..3ac0b05c9ebe704d46e9fd661afbbdc7ecd16c48 100644
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/container_builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/container_builder.dart
@@ -402,7 +402,7 @@ class ContainerBuilder extends CodeEmitterHelper {
bool inInterceptor = backend.isInterceptedMethod(member);
List<String> fieldNames = <String>[];
compiler.boundClosureClass.forEachInstanceField((_, Element field) {
- fieldNames.add(namer.getNameOfInstanceMember(field));
+ fieldNames.add(namer.instanceFieldPropertyName(field));
});
ClassElement classElement = member.getEnclosingClass();
@@ -525,9 +525,7 @@ class ContainerBuilder extends CodeEmitterHelper {
? <jsAst.Expression>[js(receiverArgumentName)]
: <jsAst.Expression>[]);
} else {
- String fieldName = member.hasFixedBackendName()
- ? member.fixedBackendName()
- : namer.instanceFieldName(member);
+ String fieldName = namer.instanceFieldPropertyName(member);
return js('this')[fieldName];
}
}

Powered by Google App Engine
This is Rietveld 408576698