Index: runtime/lib/core_patch.dart |
diff --git a/runtime/lib/core_patch.dart b/runtime/lib/core_patch.dart |
index 13f75138101ec8e25f46e870ff97a32daafee9b7..6c792d2bfda13906657e955a14aaf9a7f4b4c3f6 100644 |
--- a/runtime/lib/core_patch.dart |
+++ b/runtime/lib/core_patch.dart |
@@ -11,13 +11,9 @@ _fatal(msg) native "DartCore_fatal"; |
// The members of this class are cloned and added to each class that |
// represents an enum type. |
class _EnumHelper { |
- // Declare the list of enum value names private. When this field is |
- // cloned into a user-defined enum class, the field will be inaccessible |
- // because of the library-specific name suffix. The toString() function |
- // below can access it because it uses the same name suffix. |
- static const List<String> _enum_names = null; |
- String toString() => _enum_names[index]; |
- int get hashCode => _enum_names[index].hashCode; |
+ String _name; |
+ String toString() => _name; |
+ int get hashCode => _name.hashCode; |
} |
// _SyncIterable and _syncIterator are used by the compiler to |