Index: sdk/lib/_internal/lib/core_patch.dart |
diff --git a/sdk/lib/_internal/lib/core_patch.dart b/sdk/lib/_internal/lib/core_patch.dart |
index aaa816442dc320e3b21552d9f60f39a1e1f26b10..7e35b71d6aa6ef857f8d8439a92d893d5cd4e8c0 100644 |
--- a/sdk/lib/_internal/lib/core_patch.dart |
+++ b/sdk/lib/_internal/lib/core_patch.dart |
@@ -8,7 +8,8 @@ import 'dart:_js_helper' show checkNull, |
getRuntimeType, |
JSSyntaxRegExp, |
Primitives, |
- stringJoinUnchecked; |
+ stringJoinUnchecked, |
+ objectHashCode; |
import "dart:_collection-dev" as _symbol_dev; |
String _symbolToString(Symbol symbol) => _symbol_dev.Symbol.getName(symbol); |
@@ -30,6 +31,8 @@ patch void print(Object object) { |
patch class Object { |
patch int get hashCode => Primitives.objectHashCode(this); |
+ patch static int hashCodeOf(Object object) => objectHashCode(object); |
+ |
patch String toString() => Primitives.objectToString(this); |
patch dynamic noSuchMethod(Invocation invocation) { |