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

Unified Diff: test/dart_codegen/expect/async/async_error.dart

Issue 1148283010: Remove dart backend (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 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: test/dart_codegen/expect/async/async_error.dart
diff --git a/test/dart_codegen/expect/async/async_error.dart b/test/dart_codegen/expect/async/async_error.dart
deleted file mode 100644
index 0ea64dcdbc49d9285330b1af50081270d78f306f..0000000000000000000000000000000000000000
--- a/test/dart_codegen/expect/async/async_error.dart
+++ /dev/null
@@ -1,34 +0,0 @@
-part of dart.async;
- _invokeErrorHandler(Function errorHandler, Object error, StackTrace stackTrace) {
- if (errorHandler is ZoneBinaryCallback) {
- return errorHandler(error, stackTrace);
- }
- else {
- return errorHandler(error);
- }
- }
- Function _registerErrorHandler(Function errorHandler, Zone zone) {
- if (errorHandler is ZoneBinaryCallback) {
- return zone.registerBinaryCallback(errorHandler);
- }
- else {
- return zone.registerUnaryCallback(DEVC$RT.cast(errorHandler, Function, __CastType0, "ImplicitCast", """line 20, column 39 of dart:async/async_error.dart: """, errorHandler is __CastType0, true));
- }
- }
- class _UncaughtAsyncError extends AsyncError {_UncaughtAsyncError(error, StackTrace stackTrace) : super(error, _getBestStackTrace(error, stackTrace));
- static StackTrace _getBestStackTrace(error, StackTrace stackTrace) {
- if (stackTrace != null) return stackTrace;
- if (error is Error) {
- return DEVC$RT.cast(error.stackTrace, dynamic, StackTrace, "DynamicCast", """line 31, column 14 of dart:async/async_error.dart: """, error.stackTrace is StackTrace, true);
- }
- return null;
- }
- String toString() {
- String result = "Uncaught Error: ${error}";
- if (stackTrace != null) {
- result += "\nStack Trace:\n$stackTrace";
- }
- return result;
- }
-}
- typedef dynamic __CastType0(dynamic __u1);
« no previous file with comments | « test/dart_codegen/expect/async/async ('k') | test/dart_codegen/expect/async/broadcast_stream_controller.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698