Chromium Code Reviews| Index: lib/compiler/implementation/namer.dart |
| diff --git a/lib/compiler/implementation/namer.dart b/lib/compiler/implementation/namer.dart |
| index 7aa40cf6d77579aaca2bc0d81c478bd82ad1901a..8680ac740b738f368376602dd1b798281d124059 100644 |
| --- a/lib/compiler/implementation/namer.dart |
| +++ b/lib/compiler/implementation/namer.dart |
| @@ -63,7 +63,11 @@ class Namer { |
| } |
| String instanceFieldName(LibraryElement lib, SourceString name) { |
| - return privateName(lib, name); |
| + String proposedName = privateName(lib, name); |
| + if (jsReserved.contains(proposedName)) { |
| + return '$proposedName\$'; |
|
ngeoffray
2012/04/23 18:38:15
This code very much looks like JsName.getValid, sh
floitsch
2012/04/25 08:42:24
Thanks. Addressed in CL 10223002.
|
| + } |
| + return proposedName; |
| } |
| String setterName(LibraryElement lib, SourceString name) { |