platform/packages/framework/test/hm.dart

15 lines
354 B
Dart
Raw Normal View History

2018-07-09 14:40:06 +00:00
import 'dart:async';
import 'package:io/ansi.dart';
import 'all.dart' as hm;
main() async {
var zone = Zone.current.fork(
2019-05-02 22:48:31 +00:00
specification: ZoneSpecification(print: (self, parent, zone, line) {
2018-07-09 14:40:06 +00:00
if (line == 'null') {
2021-03-20 08:11:18 +00:00
parent.print(zone, cyan.wrap(StackTrace.current.toString())!);
2018-07-09 14:40:06 +00:00
}
}),
);
return await zone.run(hm.main);
}