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

Unified Diff: test/dart_codegen/expect/async/timer.dart

Issue 1052383003: Disable closure wrapping by default (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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: test/dart_codegen/expect/async/timer.dart
diff --git a/test/dart_codegen/expect/async/timer.dart b/test/dart_codegen/expect/async/timer.dart
index d18b8454afb0b993299cca468f89aea874feee51..13507a58a2a5e2c52dd6a890fa97261116695043 100644
--- a/test/dart_codegen/expect/async/timer.dart
+++ b/test/dart_codegen/expect/async/timer.dart
@@ -9,11 +9,7 @@ part of dart.async;
if (Zone.current == Zone.ROOT) {
return Zone.current.createPeriodicTimer(duration, callback);
}
- return Zone.current.createPeriodicTimer(duration, ((__x129) => DEVC$RT.wrap((dynamic f(dynamic __u124)) {
- dynamic c(dynamic x0) => f(x0);
- return f == null ? null : c;
- }
- , __x129, __t127, __t125, "Wrap", """line 80, column 19 of dart:async/timer.dart: """, __x129 is __t125))(Zone.current.bindUnaryCallback(callback, runGuarded: true)));
+ return Zone.current.createPeriodicTimer(duration, ((__x104) => DEVC$RT.cast(__x104, __t102, __t100, "CompositeCast", """line 80, column 19 of dart:async/timer.dart: """, __x104 is __t100, false))(Zone.current.bindUnaryCallback(callback, runGuarded: true)));
}
static void run(void callback()) {
new Timer(Duration.ZERO, callback);
@@ -23,5 +19,5 @@ part of dart.async;
external static Timer _createTimer(Duration duration, void callback());
external static Timer _createPeriodicTimer(Duration duration, void callback(Timer timer));
}
- typedef void __t125(Timer __u126);
- typedef dynamic __t127(dynamic __u128);
+ typedef void __t100(Timer __u101);
+ typedef dynamic __t102(dynamic __u103);

Powered by Google App Engine
This is Rietveld 408576698