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

Side by Side Diff: tests/language/vm/regress_29145_test.dart

Issue 2786503003: Fix a couple of bugs with async stack traces (Closed)
Patch Set: update dartk service test status Created 3 years, 8 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
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4 // VMOptions=--optimization-counter-threshold=-1 --stacktrace-filter=completeErr or --stress-async-stacks
5
6 // Stress test for async stack traces.
7
8 import 'dart:async';
9 import "package:expect/expect.dart";
10
11 class A {
12 Future<List<int>> read() => new Future.error(123);
13 }
14
15 Future<A> haha() => new Future.microtask(() => new A());
16
17 Future<List<int>> mm() async => (await haha()).read();
18
19 foo() async => await mm();
20
21 main() async {
22 var x;
23 try {
24 x = await foo();
25 } catch (e) {
26 Expect.equals(123, e);
27 return;
28 }
29 Expect.isTrue(false);
30 }
OLDNEW
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698