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

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

Issue 425023002: Ensure that unmangled private names are unique. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 months 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/class_emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart
index c936173d9150e63e5c164c543a06af2f05ee327d..88905ce87f94ca670a8fff5eba15f55deafb7b9c 100644
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart
@@ -154,7 +154,8 @@ class ClassEmitter extends CodeEmitterHelper {
metadata = new jsAst.LiteralNull();
}
fieldMetadata.add(metadata);
- recordMangledField(field, accessorName, field.name);
+ recordMangledField(field, accessorName,
+ namer.privateName(field.library, field.name));
String fieldName = name;
String fieldCode = '';
String reflectionMarker = '';

Powered by Google App Engine
This is Rietveld 408576698