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

Unified Diff: runtime/lib/object_patch.dart

Issue 22819005: Make Null a public class of dart:core. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: type cast, extends/implements prohibition Created 7 years, 4 months 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
Index: runtime/lib/object_patch.dart
diff --git a/runtime/lib/object_patch.dart b/runtime/lib/object_patch.dart
index 8ef62a93a9f7cb32042cc4abc99d46f2237f4a4e..e4b24cb73d3bd432fdbb667f254a39f42feeaa75 100644
--- a/runtime/lib/object_patch.dart
+++ b/runtime/lib/object_patch.dart
@@ -13,9 +13,6 @@ patch class Object {
static _setHash(obj, hash) native "Object_setHash";
/* patch */ int get hashCode {
- if (this == null) {
- return 2011; // The year Dart was announced and a prime.
- }
var result = _getHash(this);
if (result == 0) {
// We want the hash to be a Smi value greater than 0.
« no previous file with comments | « runtime/lib/null_patch.dart ('k') | runtime/vm/class_finalizer.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698