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

Side by Side Diff: tests/language/stack_overflow_stacktrace_test.dart

Issue 12049039: Fix source position for stack traces with optimized top function. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: avoid default arguments by using pending_deoptimization_env_ Created 7 years, 10 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
OLDNEW
(Empty)
1 // Copyright (c) 2013, 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 // Dart program testing stack overflow.
5
6 class StackOverflowTest {
7
8 static void curseTheRecurse(a, b, c) {
9 curseTheRecurse(b, c, a);
10 }
11
12 static void testMain() {
13 bool exceptionCaught = false;
14 try {
15 curseTheRecurse(1, 2, 3);
16 } on StackOverflowError catch (e, stacktrace) {
17 String s = stacktrace.toString();
18 Expect.equals(-1, s.indexOf("-1:-1"));
19 exceptionCaught = true;
20 }
21 Expect.equals(true, exceptionCaught);
22 }
23 }
24
25 main() {
26 StackOverflowTest.testMain();
27 }
OLDNEW
« runtime/vm/stack_frame.cc ('K') | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698