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

Side by Side Diff: tests/compiler/dart2js/async_await_js_transform_test.dart

Issue 976603002: Fix problems with default-cases in async code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/js/rewrite_async.dart ('k') | tests/language/async_switch_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import "package:compiler/src/js/js.dart"; 6 import "package:compiler/src/js/js.dart";
7 import "package:compiler/src/js/rewrite_async.dart"; 7 import "package:compiler/src/js/rewrite_async.dart";
8 8
9 import "backend_dart/dart_printer_test.dart" show PrintDiagnosticListener; 9 import "backend_dart/dart_printer_test.dart" show PrintDiagnosticListener;
10 10
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 __goto = 7; 412 __goto = 7;
413 break; 413 break;
414 case 1: 414 case 1:
415 // goto case 415 // goto case
416 __goto = 8; 416 __goto = 8;
417 break; 417 break;
418 case 2: 418 case 2:
419 // goto case 419 // goto case
420 __goto = 9; 420 __goto = 9;
421 break; 421 break;
422 default:
423 // goto after switch
424 __goto = 5;
425 break;
422 } 426 }
423 // goto after switch
424 __goto = 5;
425 break; 427 break;
426 case 6: 428 case 6:
427 // case 429 // case
428 case 7: 430 case 7:
429 // case 431 // case
430 __goto = 10; 432 __goto = 10;
431 return thenHelper(foo(), __body, __completer); 433 return thenHelper(foo(), __body, __completer);
432 case 10: 434 case 10:
433 // returning from await. 435 // returning from await.
434 // goto while condition 436 // goto while condition
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 // return 1009 // return
1008 return thenHelper(__returnValue, 0, __completer, null); 1010 return thenHelper(__returnValue, 0, __completer, null);
1009 case 2: 1011 case 2:
1010 // rethrow 1012 // rethrow
1011 return thenHelper(__currentError, 1, __completer); 1013 return thenHelper(__currentError, 1, __completer);
1012 } 1014 }
1013 } 1015 }
1014 return thenHelper(null, __body, __completer, null); 1016 return thenHelper(null, __body, __completer, null);
1015 }"""); 1017 }""");
1016 } 1018 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js/rewrite_async.dart ('k') | tests/language/async_switch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698