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

Unified Diff: tool/input_sdk/private/ddc_runtime/runtime.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/private/ddc_runtime/runtime.dart
diff --git a/tool/input_sdk/private/ddc_runtime/runtime.dart b/tool/input_sdk/private/ddc_runtime/runtime.dart
index 3f058bbe26ffe6f8a0443e0892a4ca09c644e0a7..f453b527c07bfaa4a5581f1a01d9b9f2bbc21e47 100644
--- a/tool/input_sdk/private/ddc_runtime/runtime.dart
+++ b/tool/input_sdk/private/ddc_runtime/runtime.dart
@@ -10,7 +10,9 @@ import 'dart:collection';
import 'dart:_foreign_helper' show JS, JSExportName, rest, spread;
import 'dart:_interceptors' show JSArray;
import 'dart:_js_helper' show SyncIterable, BooleanConversionAssertionError,
- CastErrorImplementation, TypeErrorImplementation, getTraceFromException;
+ CastErrorImplementation, TypeErrorImplementation,
+ StrongModeCastError, StrongModeTypeError, StrongModeErrorImplementation,
+ getTraceFromException;
part 'classes.dart';
part 'errors.dart';

Powered by Google App Engine
This is Rietveld 408576698