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

Unified Diff: tests/compiler/dart2js_extra/closure_capture2_test.dart

Issue 437193002: Remove function names on function expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove TODO Created 6 years, 4 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_extra/closure_capture2_test.dart
diff --git a/tests/compiler/dart2js_extra/closure_capture2_test.dart b/tests/compiler/dart2js_extra/closure_capture2_test.dart
index 6c13143a86213f58e0e59c7e899f326ff43e27e2..b49bf983e5d938193b846300bf9921c89f8e3dec 100644
--- a/tests/compiler/dart2js_extra/closure_capture2_test.dart
+++ b/tests/compiler/dart2js_extra/closure_capture2_test.dart
@@ -11,14 +11,12 @@ closure0() {
var g;
{
var x = 499;
- // TODO(floitsch): remove name from functions.
- f = fun() { return x; };
+ f = () { return x; };
x++;
}
{
var x = 42;
- // TODO(floitsch): remove name from functions.
- g = fun() { return x; };
+ g = () { return x; };
x++;
}
Expect.equals(500, f());
@@ -29,8 +27,7 @@ closure1() {
// f captures variable $0 which once could yield to troubles with HForeign if
// we did not mangle correctly.
var $1 = 499;
- // TODO(floitsch): remove name from functions.
- var f = fun() { return $1; };
+ var f = () { return $1; };
$1++;
Expect.equals(500, f());
}
« no previous file with comments | « tests/compiler/dart2js_extra/closure4_test.dart ('k') | tests/compiler/dart2js_extra/closure_capture3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698