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

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

Issue 1075113003: Pull JS assignments into var initializer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated js_cps_ir_backend test files Created 5 years, 8 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: tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
index cc20b1b58ab44d4a2d117581ce646c6fbbe2eaad..58cf37490720ee132cd31c519cd823522290c6e1 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
@@ -21,8 +21,7 @@ main(x) {
""",
r"""
function(x) {
- var _box_0, a;
- _box_0 = {};
+ var _box_0 = {}, a;
_box_0._captured_x_0 = x;
a = new V.main_a(_box_0);
x = _box_0._captured_x_0;
@@ -55,8 +54,7 @@ main() {
""",
r"""
function() {
- var _box_0, a, x;
- _box_0 = {};
+ var _box_0 = {}, a, x;
_box_0._captured_x_0 = 122;
a = new V.main_closure(_box_0);
x = _box_0._captured_x_0;
@@ -78,8 +76,7 @@ main() {
""",
r"""
function() {
- var _box_0, a, x;
- _box_0 = {};
+ var _box_0 = {}, a, x;
_box_0._captured_x_0 = 122;
a = new V.main_closure(_box_0);
x = _box_0._captured_x_0;
@@ -99,9 +96,7 @@ main() {
""",
r"""
function() {
- var a, i;
- a = null;
- i = 0;
+ var a = null, i = 0;
while (P.identical(J.getInterceptor$n(i).$lt(i, 10), true)) {
a = new V.main_closure(i);
i = J.getInterceptor$ns(i).$add(i, 1);

Powered by Google App Engine
This is Rietveld 408576698