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

Unified Diff: lib/src/js/printer.dart

Issue 1328303002: fix implicit_scope_test and builtin_identifier_test (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 5 years, 3 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 | « lib/src/js/nodes.dart ('k') | test/browser/language_tests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/js/printer.dart
diff --git a/lib/src/js/printer.dart b/lib/src/js/printer.dart
index fd7e422792ce4b9a702d170cb2bcaf98ddf2f372..1903e81f09facf9378313a133d1b73f97caaccfb 100644
--- a/lib/src/js/printer.dart
+++ b/lib/src/js/printer.dart
@@ -238,7 +238,7 @@ class Printer implements NodeVisitor {
}
void blockOutWithoutBraces(Node node) {
- if (node is Block) {
+ if (node is Block && !node.isScope) {
context.enterNode(node);
Block block = node;
block.statements.forEach(blockOutWithoutBraces);
« no previous file with comments | « lib/src/js/nodes.dart ('k') | test/browser/language_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698