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

Unified Diff: tool/input_sdk/patch/core_patch.dart

Issue 2026133002: Throw TypeError instead of CastError for type coercions. (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 years, 7 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: tool/input_sdk/patch/core_patch.dart
diff --git a/tool/input_sdk/patch/core_patch.dart b/tool/input_sdk/patch/core_patch.dart
index 184ccc731672f7ba2d66fefc86eb257a2cf355e4..ffeb76a45dce9c15bef0bd9f403a63937632a546 100644
--- a/tool/input_sdk/patch/core_patch.dart
+++ b/tool/input_sdk/patch/core_patch.dart
@@ -149,6 +149,9 @@ class Error {
StackTrace get stackTrace => Primitives.extractStackTrace(this);
}
+/// An interface type for all Strong-mode errors.
+class StrongModeError extends Error {}
+
// Patch for DateTime implementation.
@patch
class DateTime {

Powered by Google App Engine
This is Rietveld 408576698