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

Unified Diff: sdk/lib/_internal/lib/interceptors.dart

Issue 236313012: Don't hide interceptors in mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor cleanups. Created 6 years, 8 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: sdk/lib/_internal/lib/interceptors.dart
diff --git a/sdk/lib/_internal/lib/interceptors.dart b/sdk/lib/_internal/lib/interceptors.dart
index 05af57ea70805ff6807128d21b389cd2648b65e2..1477ea0e115982983e744b60199ed7f307e4a7fd 100644
--- a/sdk/lib/_internal/lib/interceptors.dart
+++ b/sdk/lib/_internal/lib/interceptors.dart
@@ -329,7 +329,12 @@ class JSNull extends Interceptor implements Null {
int get hashCode => 0;
+ // The spec guarantees that `null` is the singleton instance of the `Null`
+ // class. In the mirrors library we also have to patch the `type` getter to
+ // special case `null`.
Type get runtimeType => Null;
+
+ dynamic noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
/**

Powered by Google App Engine
This is Rietveld 408576698