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

Side by Side Diff: tests/language_2/vm/async_await_catch_stacktrace_test.dart

Issue 3008723002: Migrate block 163 to Dart 2.0. (Closed)
Patch Set: Created 3 years, 3 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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:async_helper/async_helper.dart"; 6 import "package:async_helper/async_helper.dart";
7 7
8 void main() { 8 void main() {
9 x() async { 9 x() async {
10 print("Starting!"); 10 print("Starting!");
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 print("Ending!"); 47 print("Ending!");
48 } 48 }
49 49
50 asyncStart(); 50 asyncStart();
51 x().then((_) => asyncEnd()); 51 x().then((_) => asyncEnd());
52 } 52 }
53 53
54 runAsync() async { 54 runAsync() async {
55 throw 'oh no!'; 55 throw 'oh no!';
56 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698