Index: pkg/compiler/lib/src/js_backend/namer_names.dart |
diff --git a/pkg/compiler/lib/src/js_backend/namer_names.dart b/pkg/compiler/lib/src/js_backend/namer_names.dart |
index 60e159745cea7327c9ea61b72e01a83cf0ccd05c..31a17471ca2fe071cce57b6815b38901cda15c54 100644 |
--- a/pkg/compiler/lib/src/js_backend/namer_names.dart |
+++ b/pkg/compiler/lib/src/js_backend/namer_names.dart |
@@ -8,7 +8,12 @@ abstract class _NamerName extends jsAst.Name { |
int get _kind; |
_NamerName get _target => this; |
- toString() => throw new UnsupportedError("Cannot convert a name to a string"); |
+ String toString() { |
+ if (DEBUG_MODE) { |
+ return 'Name($key)'; |
+ } |
+ throw new UnsupportedError("Cannot convert a name to a string"); |
+ } |
} |
enum _NamerNameKinds { |