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

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

Issue 849893002: Version 1.8.5 (Closed) Base URL: http://dart.googlecode.com/svn/branches/1.8/
Patch Set: Created 5 years, 11 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 | « dart/runtime/vm/zone.cc ('k') | dart/tools/VERSION » ('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 // Regression test for issue 21795. 5 // Regression test for issue 21795.
6 6
7 foo(t) { 7 foo(t) {
8 try { 8 try {
9 if (t == 123) throw 42; 9 if (t == 123) throw 42;
10 } finally { } 10 } finally { }
(...skipping 26 matching lines...) Expand all
37 for (var i=0; i<10000; ++i) a.test(0); 37 for (var i=0; i<10000; ++i) a.test(0);
38 try { 38 try {
39 a.test(123); 39 a.test(123);
40 } catch (e, s) { 40 } catch (e, s) {
41 if (s.toString().indexOf("foo") == -1) { 41 if (s.toString().indexOf("foo") == -1) {
42 print(s); 42 print(s);
43 throw "Expected foo in stacktrace!"; 43 throw "Expected foo in stacktrace!";
44 } 44 }
45 } 45 }
46 } 46 }
OLDNEW
« no previous file with comments | « dart/runtime/vm/zone.cc ('k') | dart/tools/VERSION » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698