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

Unified Diff: tool/input_sdk/private/ddc_runtime/errors.dart

Issue 1945113003: Better is/as check handling. With this CL, the subtype function in (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Update new tests after rebase 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
« no previous file with comments | « test/codegen/language/type_literal_test.dart ('k') | tool/input_sdk/private/ddc_runtime/operations.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/ddc_runtime/errors.dart
diff --git a/tool/input_sdk/private/ddc_runtime/errors.dart b/tool/input_sdk/private/ddc_runtime/errors.dart
index 2225ccafdc27a391fbe39571df550977c45d5fc3..12436155ad87c3b1d496dcea2e2796455e44e3fc 100644
--- a/tool/input_sdk/private/ddc_runtime/errors.dart
+++ b/tool/input_sdk/private/ddc_runtime/errors.dart
@@ -4,7 +4,8 @@
part of dart._runtime;
throwCastError(actual, type) => JS('', '''(() => {
- $throw_(new $CastErrorImplementation($actual, $type));
+ $throw_(new $CastErrorImplementation($typeName($actual),
+ $typeName($type)));
})()''');
throwAssertionError() => JS('', '''(() => {
« no previous file with comments | « test/codegen/language/type_literal_test.dart ('k') | tool/input_sdk/private/ddc_runtime/operations.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698