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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart

Issue 2739863003: Add option to suppress type-check whitelisting (Closed)
Patch Set: Created 3 years, 9 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: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart
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 f89ca0c81283beb9d44df5a0df4ed9111de76e61..f7fa49105fab10aad80afb94d475187a898db39b 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
@@ -498,7 +498,7 @@ bool strongInstanceOf(obj, type, ignoreFromWhiteList) => JS(
if (result || actual == $jsobject ||
actual == $int && type == $double) return true;
if (result === false) return false;
- if ($ignoreFromWhiteList == void 0) return result;
+ if (!$_ignoreWhitelistedErrors || ($ignoreFromWhiteList == void 0)) return result;
if ($_ignoreTypeFailure(actual, $type)) return true;
return result;
})()''');

Powered by Google App Engine
This is Rietveld 408576698