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

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: rebase on dart2js's putback 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 e2b493353c28ac0a168e21d585f78b28f63d37ce..2d42da7df44ebf90db1c20f3e6b0045f3bf5533a 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.

Powered by Google App Engine
This is Rietveld 408576698