Chromium Code Reviews| Index: lib/src/chain.dart |
| diff --git a/lib/src/chain.dart b/lib/src/chain.dart |
| index 2e63ef02c6ffb3652a27d8bacb029f3cf2598755..2b4c522aaa169b0e91572ea6396085b6d924e783 100644 |
| --- a/lib/src/chain.dart |
| +++ b/lib/src/chain.dart |
| @@ -14,6 +14,7 @@ import 'trace.dart'; |
| import 'utils.dart'; |
| /// A function that handles errors in the zone wrapped by [Chain.capture]. |
| +@deprecated( |
|
Bob Nystrom
2016/01/12 01:12:14
Remove "(".
nweiz
2016/01/12 01:30:35
Done.
|
| typedef void ChainHandler(error, Chain chain); |
| /// A chain of stack traces. |
| @@ -63,7 +64,7 @@ class Chain implements StackTrace { |
| /// considered unhandled. |
| /// |
| /// If [callback] returns a value, it will be returned by [capture] as well. |
| - static capture(callback(), {ChainHandler onError}) { |
| + static capture(callback(), {void onError(error, Chain chain)}) { |
| var spec = new StackZoneSpecification(onError); |
| return runZoned(() { |
| try { |