| Index: dart/lib/compiler/implementation/lib/core_patch.dart
|
| diff --git a/dart/lib/compiler/implementation/lib/core_patch.dart b/dart/lib/compiler/implementation/lib/core_patch.dart
|
| index 0376eaaeb472a4801ec89b1a188f136c2dae0a98..2407ff4bc9ba080d6e4b8dd88f9eb4b198cc00f2 100644
|
| --- a/dart/lib/compiler/implementation/lib/core_patch.dart
|
| +++ b/dart/lib/compiler/implementation/lib/core_patch.dart
|
| @@ -13,17 +13,11 @@ patch void print(var obj) {
|
| }
|
| }
|
|
|
| -
|
| // Patch for Object implementation.
|
| patch class Object {
|
| - patch int hashCode() {
|
| - throw new RuntimeError("Unimplemented: Object.hashCode");
|
| - return -1;
|
| - }
|
| + patch int hashCode() => Primitives.objectHashCode(this);
|
|
|
| - patch String toString() {
|
| - return Primitives.objectToString(this);
|
| - }
|
| + patch String toString() => Primitives.objectToString(this);
|
|
|
| patch void noSuchMethod(String name, List args) {
|
| throw new NoSuchMethodError(this, name, args);
|
|
|