Index: sdk/lib/_internal/compiler/js_lib/js_rti.dart |
diff --git a/sdk/lib/_internal/compiler/js_lib/js_rti.dart b/sdk/lib/_internal/compiler/js_lib/js_rti.dart |
index f1531501070267101dc1ecb65b3443f12d4b375a..e5669e2a6babfca6dfcb3b2d8269714294549f74 100644 |
--- a/sdk/lib/_internal/compiler/js_lib/js_rti.dart |
+++ b/sdk/lib/_internal/compiler/js_lib/js_rti.dart |
@@ -389,7 +389,8 @@ bool checkSubtypeOfRuntimeType(o, t) { |
rti = JS('JSExtendableArray', '#.slice()', rti); // Make a copy. |
JS('', '#.splice(0, 0, #)', rti, type); // Insert type at position 0. |
type = rti; |
- } else if (isDartFunctionType(t)) { |
+ } |
+ if (isDartFunctionType(t)) { |
// Functions are treated specially and have their type information stored |
// directly in the instance. |
var targetSignatureFunction = |