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

Unified Diff: tests/compiler/dart2js/async_await_js_transform_test.dart

Issue 1427593003: dart2js: Bugfix for when 'await' occurs in an initializer list. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « pkg/pkg.status ('k') | tests/compiler/dart2js/dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/async_await_js_transform_test.dart
diff --git a/tests/compiler/dart2js/async_await_js_transform_test.dart b/tests/compiler/dart2js/async_await_js_transform_test.dart
index d0f4c85636b09cafaa87d4cdfca06a1478211f0f..40c9eb654db7a656af1ee8a1e584dbd091d4040d 100644
--- a/tests/compiler/dart2js/async_await_js_transform_test.dart
+++ b/tests/compiler/dart2js/async_await_js_transform_test.dart
@@ -64,12 +64,13 @@ r"""function() async {
switch (__goto) {
case 0:
// Function start
+ closures = [new A.main_closure()];
__goto = 2;
- closures = [new A.main_closure()];
- return thenHelper(closures, body, __completer);
+ return thenHelper(closures, body, __completer);
case 2:
// returning from await.
- v0 = __result, v1 = 0;
+ v0 = __result;
+ v1 = 0;
if (v1 < 0 || v1 >= v0.length)
H.ioore(v0, v1);
else
« no previous file with comments | « pkg/pkg.status ('k') | tests/compiler/dart2js/dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698