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

Unified Diff: test/codegen/expect/sunflower/sunflower.js

Issue 1050703002: Downwards closure inference (Closed) Base URL: git@github.com:dart-lang/dart-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/codegen/expect/sunflower/sunflower.js
diff --git a/test/codegen/expect/sunflower/sunflower.js b/test/codegen/expect/sunflower/sunflower.js
index 5444a64e6aae8300749ef5e465cb2ad15e376ea7..52b1b99ea104f08a6e69a6327f427d7e95383c1d 100644
--- a/test/codegen/expect/sunflower/sunflower.js
+++ b/test/codegen/expect/sunflower/sunflower.js
@@ -29,7 +29,7 @@ var sunflower;
});
// Function main: () → void
function main() {
- exports.slider.addEventListener('change', dart.closureWrap((e) => draw(), "(Event) → void"));
+ exports.slider.addEventListener('change', dart.as((e) => draw(), dom.EventListener));
vsm 2015/04/01 00:14:19 Did we infer this? We shouldn't need a cast at ru
Leaf 2015/04/03 00:51:55 The JS codegen currently turns most conversions (i
draw();
}
// Function draw: () → void

Powered by Google App Engine
This is Rietveld 408576698