OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 import 'dart:isolate'; | 5 import 'dart:isolate'; |
6 import 'dart:async'; | 6 import 'dart:async'; |
7 | 7 |
8 class Expect { | 8 class Expect { |
9 static void equals(x, y) { | 9 static void equals(x, y) { |
10 if (x != y) throw new RuntimeError('not equal'); | 10 if (x != y) throw new ArgumentError('not equal'); |
11 } | 11 } |
12 } | 12 } |
13 | 13 |
14 class Fields { | 14 class Fields { |
15 Fields(int i, int j) : fld1 = i, fld2 = j, fld5 = true {} | 15 Fields(int i, int j) : fld1 = i, fld2 = j, fld5 = true {} |
16 int fld1; | 16 int fld1; |
17 final int fld2; | 17 final int fld2; |
18 static int fld3; | 18 static int fld3; |
19 static const int fld4 = 10; | 19 static const int fld4 = 10; |
20 bool fld5; | 20 bool fld5; |
(...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1556 void processLines() { | 1556 void processLines() { |
1557 port.receive((message, SendPort replyTo) { | 1557 port.receive((message, SendPort replyTo) { |
1558 if (message == TERMINATION_MESSAGE) { | 1558 if (message == TERMINATION_MESSAGE) { |
1559 assert(replyTo == null); | 1559 assert(replyTo == null); |
1560 port.close(); | 1560 port.close(); |
1561 } else { | 1561 } else { |
1562 replyTo.send(processLine(message), null); | 1562 replyTo.send(processLine(message), null); |
1563 } | 1563 } |
1564 }); | 1564 }); |
1565 } | 1565 } |
OLD | NEW |