| 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 // Dart test program for testing throw statement | 4 // Dart test program for testing throw statement |
| 5 // VMOptions=--old_gen_heap_size=512 |
| 5 | 6 |
| 6 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
| 7 | 8 |
| 8 class Helper1 { | 9 class Helper1 { |
| 9 static int func1() { | 10 static int func1() { |
| 10 return func2(); | 11 return func2(); |
| 11 } | 12 } |
| 12 static int func2() { | 13 static int func2() { |
| 13 return func3(); | 14 return func3(); |
| 14 } | 15 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 35 | 36 |
| 36 class OOMErrorStackTraceTest { | 37 class OOMErrorStackTraceTest { |
| 37 static testMain() { | 38 static testMain() { |
| 38 Expect.equals(100, Helper1.func1()); | 39 Expect.equals(100, Helper1.func1()); |
| 39 } | 40 } |
| 40 } | 41 } |
| 41 | 42 |
| 42 main() { | 43 main() { |
| 43 OOMErrorStackTraceTest.testMain(); | 44 OOMErrorStackTraceTest.testMain(); |
| 44 } | 45 } |
| OLD | NEW |