From c771e4d13253b6b1da0a4898d9ae25c6bf961d79 Mon Sep 17 00:00:00 2001 From: Vijay Menon Date: Tue, 22 May 2018 12:15:32 +0000 Subject: [PATCH] DDC: disallow ignore option on Stream cast failures See #27223 Change-Id: Ia23edc3700a8e0bb3d982be9b0bb36ad4522091d Reviewed-on: https://dart-review.googlesource.com/56033 Reviewed-by: Samuel Rawlins Commit-Queue: Vijay Menon --- .../tool/input_sdk/private/ddc_runtime/operations.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart index dd29a6c99ff6..0723a7bba386 100644 --- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart +++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart @@ -425,8 +425,7 @@ final _ignoreTypeFailure = JS('', '''(() => { if (!!$isSubtype(type, $Iterable) && !!$isSubtype(actual, $Iterable) || !!$isSubtype(type, $Future) && !!$isSubtype(actual, $Future) || - !!$isSubtype(type, $Map) && !!$isSubtype(actual, $Map) || - !!$isSubtype(type, $Stream) && !!$isSubtype(actual, $Stream)) { + !!$isSubtype(type, $Map) && !!$isSubtype(actual, $Map)) { console.warn('Ignoring cast fail from ' + $typeName(actual) + ' to ' + $typeName(type)); return true;