Chromium Code Reviews| Index: pkg/compiler/lib/src/helpers/trace.dart |
| diff --git a/pkg/compiler/lib/src/helpers/trace.dart b/pkg/compiler/lib/src/helpers/trace.dart |
| index a6bdcf67c2b307ef405b834893223cec8822ca6f..dc57d77cc837b8a8154a15812f06bb3621a6e182 100644 |
| --- a/pkg/compiler/lib/src/helpers/trace.dart |
| +++ b/pkg/compiler/lib/src/helpers/trace.dart |
| @@ -53,6 +53,14 @@ void _trace(String message, {bool condition(String stackTrace), int limit, |
| } |
| } |
| +traceExceptions(List<String> exceptions) { |
|
karlklose
2015/06/08 09:05:30
Please add some documentation.
Johnni Winther
2015/06/08 09:36:14
Done.
|
| + return (String stackTrace) { |
| + return !exceptions.any((String exception) { |
| + return stackTrace.contains(exception); |
|
karlklose
2015/06/08 09:05:30
'return !exceptions.any(stackTrace.contains);'
Johnni Winther
2015/06/08 09:36:14
Done.
|
| + }); |
| + }; |
| +} |
| + |
| /// Function signature of [traceAndReport]. |
| typedef void TraceAndReport(Compiler compiler, Spannable node, String message, |
| {bool condition(String stackTrace), int limit, |