Chromium Code Reviews| Index: sdk/lib/_internal/lib/js_rti.dart |
| diff --git a/sdk/lib/_internal/lib/js_rti.dart b/sdk/lib/_internal/lib/js_rti.dart |
| index 4441214b8e9de4386f3a08042c4de780eca502f0..a397d6b5bd5afde3ac78f28ef8279efa0a8f8f23 100644 |
| --- a/sdk/lib/_internal/lib/js_rti.dart |
| +++ b/sdk/lib/_internal/lib/js_rti.dart |
| @@ -383,7 +383,8 @@ computeSignature(var signature, var context, var contextName) { |
| */ |
| bool isSupertypeOfNull(var type) { |
| // `null` means `dynamic`. |
| - return isNull(type) || getConstructorName(type) == JS_OBJECT_CLASS_NAME(); |
| + return isNull(type) || getConstructorName(type) == JS_OBJECT_CLASS_NAME() |
| + || getConstructorName(type) == JS_NULL_CLASS_NAME(); |
|
ahe
2013/08/15 11:16:46
I have a strong suspicion that it would make sense
Lasse Reichstein Nielsen
2013/08/15 13:06:10
Done.
|
| } |
| /** |