| 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..3225c269d882a538f688010e46735de83f953433 100644
|
| --- a/pkg/compiler/lib/src/helpers/trace.dart
|
| +++ b/pkg/compiler/lib/src/helpers/trace.dart
|
| @@ -53,6 +53,12 @@ void _trace(String message, {bool condition(String stackTrace), int limit,
|
| }
|
| }
|
|
|
| +/// Creates a function to use as an `condition` argument in [trace] that filters
|
| +/// stack traces that contains any of the [exceptions].
|
| +traceExceptions(List<String> exceptions) {
|
| + return (String stackTrace) => !exceptions.any(stackTrace.contains);
|
| +}
|
| +
|
| /// Function signature of [traceAndReport].
|
| typedef void TraceAndReport(Compiler compiler, Spannable node, String message,
|
| {bool condition(String stackTrace), int limit,
|
|
|