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 /// Tests of 'package:fletchc/src/zone_helper.dart'. | 5 /// Tests of 'package:fletchc/src/zone_helper.dart'. |
6 library fletch_tests.zone_helper_tests; | 6 library fletch_tests.zone_helper_tests; |
7 | 7 |
8 import 'dart:async'; | 8 import 'dart:async'; |
9 | 9 |
10 import 'dart:isolate'; | 10 import 'dart:isolate'; |
11 | 11 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 testCompileTimeErrorHelper(null, () {}); | 185 testCompileTimeErrorHelper(null, () {}); |
186 } | 186 } |
187 | 187 |
188 testCompileTimeErrorHelper(SendPort port, void methodWithCompileTimeError()) { | 188 testCompileTimeErrorHelper(SendPort port, void methodWithCompileTimeError()) { |
189 return runGuarded(() { | 189 return runGuarded(() { |
190 methodWithCompileTimeError(); | 190 methodWithCompileTimeError(); |
191 }).catchError((e, s) { | 191 }).catchError((e, s) { |
192 port.send("Error in isolate: $e\nStack trace: $s"); | 192 port.send("Error in isolate: $e\nStack trace: $s"); |
193 }); | 193 }); |
194 } | 194 } |
OLD | NEW |