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

Unified Diff: runtime/lib/object_patch.dart

Issue 10979050: Ensure that hashCode and runtimeType work on null. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments. Created 8 years, 3 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 71ee5faba3b6717f8e37893ad69bb2aed451527e..a6f07007e3082b4eedf5820840be99ad0e8e2737 100644
--- a/runtime/lib/object_patch.dart
+++ b/runtime/lib/object_patch.dart
@@ -25,6 +25,9 @@ patch class Object {
_noSuchMethod(this, functionName, args);
}
+ // Not yet supported.
+ /* patch */ Type get runtimeType => null;
ahe 2012/09/27 11:30:54 Perhaps you should throw an exception instead.
+
static void _noSuchMethod(Object obj, String functionName, List args)
native "Object_noSuchMethod";

Powered by Google App Engine
This is Rietveld 408576698