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

Side by Side Diff: tests/standalone/causal_async_stack_test.dart

Issue 2944483002: Allow enabling --causal-async-stacks in AOT. (Closed)
Patch Set: . Created 3 years, 6 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 | « runtime/vm/flag_list.h ('k') | tests/standalone/standalone.status » ('j') | 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=--causal_async_stacks
5
6 import "package:expect/expect.dart";
7
8 baz() async {
9 throw "Bad!";
10 }
11
12 bar() async {
13 await baz();
14 }
15
16 foo() async {
17 await bar();
18 }
19
20 main() async {
21 try {
22 await foo();
23 } catch (e, st) {
24 Expect.isTrue(st.toString().contains("baz"));
25 Expect.isTrue(st.toString().contains("bar"));
26 Expect.isTrue(st.toString().contains("foo"));
27 Expect.isTrue(st.toString().contains("main"));
28 }
29 }
OLDNEW
« no previous file with comments | « runtime/vm/flag_list.h ('k') | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698