Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Unified Diff: tests/language/regress_23500_test.dart

Issue 1146993003: Fix issue 23500 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review comments Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/regress_23500_test.dart
diff --git a/tests/language/regress_23498_test.dart b/tests/language/regress_23500_test.dart
similarity index 78%
copy from tests/language/regress_23498_test.dart
copy to tests/language/regress_23500_test.dart
index ba7a1406d337b5611ea7076fe67760b87009909e..2a5a9fe3d991b9159b819ccc47ab0c4a55286ac7 100644
--- a/tests/language/regress_23498_test.dart
+++ b/tests/language/regress_23500_test.dart
@@ -8,15 +8,13 @@ import "package:expect/expect.dart";
foo() async {
try {
try {
- await new Future.error('error');
+ await for (var c in new Stream.fromIterable([])) {} /// 01: ok
+ await 0; /// 02: ok
} catch (error) {
- print("caught once");
- throw 'error';
}
} catch (error) {
- print("caught twice");
- throw 'error';
}
+ throw "error";
}
main() async {
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698