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

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

Issue 1699153002: Add step OverAwait to service protocol (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
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 34bac34a5b930f715bdbf028fb28cccf0a9400f2..202866b3a4a4cd5c27c6dd95729dac916c85fc23 100644
--- a/runtime/observatory/tests/service/smart_next_test.dart
+++ b/runtime/observatory/tests/service/smart_next_test.dart
@@ -45,10 +45,9 @@ stepOverAwaitingResume(Isolate isolate) async {
}
smartNext(Isolate isolate) async {
- if (isolate.pauseEvent.atAsyncJump) {
+ if (isolate.pauseEvent.atAsyncSuspension) {
print("next-async");
- List asyncStepFutures = await isolate.asyncStepOver();
- return asyncStepFutures[Isolate.kSecondResume];
+ return asyncStepOver(isolate);
} else {
print("next-sync");
return stepOverAwaitingResume(isolate);

Powered by Google App Engine
This is Rietveld 408576698