OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 // FletchDebuggerCommands=r,restart,restart,restart,restart | 5 // FletchDebuggerCommands=r,restart,restart,restart,restart |
6 | 6 |
7 enum State { | 7 enum State { |
8 ThrowNumber, | 8 ThrowNumber, |
9 ThrowString, | 9 ThrowString, |
10 ThrowExceptionObject, | 10 ThrowExceptionObject, |
11 ThrowCustomObject, | 11 ThrowCustomObject, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 class CustomException { | 47 class CustomException { |
48 final String message; | 48 final String message; |
49 final int code; | 49 final int code; |
50 | 50 |
51 const CustomException(this.message, this.code); | 51 const CustomException(this.message, this.code); |
52 } | 52 } |
53 | 53 |
54 class MyObject { | 54 class MyObject { |
55 foo() => print('foo'); | 55 foo() => print('foo'); |
56 } | 56 } |
OLD | NEW |