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 9c6d44e3a587ab47be80a7bd696dc9b5001149b7..820be3ea3e5e50700ec0dd3c6aa75e8de650b990 100644 |
--- a/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart |
+++ b/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart |
@@ -20,10 +20,7 @@ main(x) { |
""", |
r""" |
function(x) { |
- var _box_0 = {}; |
- _box_0._captured_x_0 = x; |
- _box_0._captured_x_0 = J.getInterceptor$ns(x = _box_0._captured_x_0).$add(x, "1"); |
- P.print(new V.main_a(_box_0)._box_0._captured_x_0); |
+ P.print(J.getInterceptor$ns(x).$add(x, "1")); |
}"""), |
const TestEntry(""" |
@@ -55,7 +52,7 @@ main(x) { |
""", |
r""" |
function(x) { |
- P.print(new V.main_a(x)._captured_x_0); |
+ P.print(x); |
}"""), |
const TestEntry(""" |
@@ -84,10 +81,7 @@ main() { |
""", |
r""" |
function() { |
- var _box_0 = {}; |
- _box_0._captured_x_0 = 122; |
- _box_0._captured_x_0 = _box_0._captured_x_0 + 1; |
- P.print(new V.main_closure(_box_0)._box_0._captured_x_0); |
+ P.print(122 + 1); |
}"""), |
const TestEntry(""" |
@@ -121,10 +115,7 @@ main() { |
""", |
r""" |
function() { |
- var _box_0 = {}; |
- _box_0._captured_x_0 = 122; |
- _box_0._captured_x_0 = _box_0._captured_x_0 + 1; |
- P.print(new V.main__closure(new V.main_closure(_box_0)._box_0._captured_x_0)._captured_y_1); |
+ P.print(122 + 1); |
}"""), |
const TestEntry(""" |