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

Unified Diff: frog/element.dart

Issue 8763001: Fix names with '$' to not conflict with operators or internal helpers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merged again Created 9 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
« no previous file with comments | « frog/corejs.dart ('k') | frog/frogsh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/element.dart
diff --git a/frog/element.dart b/frog/element.dart
index e3ec26d68f844bc46eab7ac859e058d935c1f83f..8efe2207d861bc0f4d98c26ab6a74f666d73bf78 100644
--- a/frog/element.dart
+++ b/frog/element.dart
@@ -18,7 +18,7 @@ class Element implements Hashable {
Element _enclosingElement;
Element(this.name, this._enclosingElement) {
- _jsname = name;
+ _jsname = world.toJsIdentifier(name);
}
// TODO - walk tree
« no previous file with comments | « frog/corejs.dart ('k') | frog/frogsh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698