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

Unified Diff: runtime/observatory/tests/service/smart_next_test.dart

Issue 1687293003: Rewrite asyncStepOver to use await (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/observatory/tests/service/get_object_rpc_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/smart_next_test.dart
diff --git a/runtime/observatory/tests/service/smart_next_test.dart b/runtime/observatory/tests/service/smart_next_test.dart
index aeb819ff471fab77345fb10f4a1ffabad0641656..34bac34a5b930f715bdbf028fb28cccf0a9400f2 100644
--- a/runtime/observatory/tests/service/smart_next_test.dart
+++ b/runtime/observatory/tests/service/smart_next_test.dart
@@ -47,7 +47,8 @@ stepOverAwaitingResume(Isolate isolate) async {
smartNext(Isolate isolate) async {
if (isolate.pauseEvent.atAsyncJump) {
print("next-async");
- return isolate.asyncStepOver()[Isolate.kSecondResume];
+ List asyncStepFutures = await isolate.asyncStepOver();
+ return asyncStepFutures[Isolate.kSecondResume];
} else {
print("next-sync");
return stepOverAwaitingResume(isolate);
« no previous file with comments | « runtime/observatory/tests/service/get_object_rpc_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698