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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.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/errors.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.dart
index 49bc1cc11afb09fdf88249a0a93b02af77434ae4..b432d3eaf214653eb79bf07de6c4b5d1e78d8768 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.dart
@@ -4,12 +4,17 @@
part of dart._runtime;
bool _trapRuntimeErrors = true;
+bool _ignoreWhitelistedErrors = true;
// Override, e.g., for testing
void trapRuntimeErrors(bool flag) {
_trapRuntimeErrors = flag;
}
+void ignoreWhitelistedErrors(bool flag) {
+ _ignoreWhitelistedErrors = flag;
+}
+
throwCastError(object, actual, type) => JS('', '''(() => {
var found = $typeName($actual);
var expected = $typeName($type);
« no previous file with comments | « pkg/dev_compiler/test/browser/language_tests.js ('k') | pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698