Skip to content

Commit 4b3e011

Browse files
floitschGkeertip
authored andcommitted
Zone.strong (#684)
* Adapt for strong-mode changes to zone. * Use `runGuarded` instead of `runUnaryGuarded`. * Increment version number. * Add Changelog entry.
1 parent f7df911 commit 4b3e011

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.12.24+6
2+
3+
* Small refactoring to make the package compatible with strong-mode compliant Zone API.
4+
No user-visible change.
5+
16
## 0.12.24+5
27

38
* Expose a way for tests to forward a `loadException` to the server.

lib/src/runner/load_suite.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ class LoadSuite extends Suite implements RunnerSuite {
159159
if (pair == null) return null;
160160

161161
var zone = pair.last;
162-
var newSuite = zone.runUnaryGuarded(change, pair.first);
162+
var newSuite;
163+
zone.runGuarded(() {
164+
newSuite = change(pair.first);
165+
});
163166
return newSuite == null ? null : new Pair(newSuite, zone);
164167
}));
165168
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test
2-
version: 0.12.24+5
2+
version: 0.12.24+6
33
author: Dart Team <[email protected]>
44
description: A library for writing dart unit tests.
55
homepage: https://github.com/dart-lang/test

0 commit comments

Comments
 (0)