OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 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 | 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 // Test that the internal hidden library doesn't make problems with taking | 5 // Test that the internal hidden library doesn't make problems with taking |
6 // stack-traces. | 6 // stack-traces. |
7 | 7 |
8 main() { | 8 main() { |
9 print(['x'].where((_) { | 9 print(['x'].where((_) { |
10 // We actually don't really care for the successful case. We just want to | 10 // We actually don't really care for the successful case. We just want to |
11 // make sure that the test doesn't crash when it is negative. | 11 // make sure that the test doesn't crash when it is negative. |
12 throw 'fisk'; /// 01: runtime error | 12 throw 'fisk'; //# 01: runtime error |
13 return true; | 13 return true; |
14 }).toList()); | 14 }).toList()); |
15 } | 15 } |
OLD | NEW |