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

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

Issue 954493002: Revert "Avoid printing braces for one-statement blocks in js-printer." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | « pkg/compiler/lib/src/js/printer.dart ('k') | tests/compiler/dart2js/js_parser_statements_test.dart » ('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 72c6c09a3e28f311004d26cf270814dd4bdc7245..0f0873b7a1be42ac3b034215036b1a7d6cf0e5ff 100644
--- a/tests/compiler/dart2js/async_await_js_transform_test.dart
+++ b/tests/compiler/dart2js/async_await_js_transform_test.dart
@@ -101,7 +101,7 @@ function(b) {
case 8:
// while condition
__handler = 10;
- inner:
+ inner: {
while (true) {
__next = [6];
// goto finally
@@ -109,6 +109,7 @@ function(b) {
break __outer1;
break;
}
+ }
while (true) {
__next = [1, 4];
// goto finally
@@ -983,9 +984,9 @@ function(x, y, k) {
break;
case 14:
// case
- if (a)
+ if (a) {
throw new Error();
- else {
+ } else {
// goto while condition
__goto = 3;
break;
« no previous file with comments | « pkg/compiler/lib/src/js/printer.dart ('k') | tests/compiler/dart2js/js_parser_statements_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698