| Index: pkg/unittest/unittest.dart
|
| diff --git a/pkg/unittest/unittest.dart b/pkg/unittest/unittest.dart
|
| index 6eab31ba5c4f63c4a78c92b4658ac641833fd9cc..da99a71d660875c790519f912ba44ae395eab55d 100644
|
| --- a/pkg/unittest/unittest.dart
|
| +++ b/pkg/unittest/unittest.dart
|
| @@ -217,7 +217,7 @@ void expectThrow(function, [bool callback(exception)]) {
|
| bool threw = false;
|
| try {
|
| function();
|
| - } catch (var e) {
|
| + } catch (e) {
|
| threw = true;
|
|
|
| // Also let the callback look at it.
|
| @@ -582,7 +582,7 @@ void group(String description, void body()) {
|
| _testSetup = null;
|
| _testTeardown = null;
|
| body();
|
| - } catch(var e, var trace) {
|
| + } catch (e, trace) {
|
| _reportTestError(e.toString(), trace == null ? '' : trace.toString());
|
| } finally {
|
| // Now that the group is over, restore the previous one.
|
| @@ -723,7 +723,7 @@ guardAsync(tryBody, [finallyBody, testNum = -1]) {
|
| if (testNum < 0) testNum = _currentTest;
|
| try {
|
| return tryBody();
|
| - } catch (var e, var trace) {
|
| + } catch (e, trace) {
|
| _registerException(testNum, e, trace);
|
| } finally {
|
| if (finallyBody != null) finallyBody();
|
|
|