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

Unified Diff: lib/src/js/printer.dart

Issue 1169473003: fixes #43, remove => workaround (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « lib/src/js/nodes.dart ('k') | test/codegen/expect/BenchmarkBase.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/js/printer.dart
diff --git a/lib/src/js/printer.dart b/lib/src/js/printer.dart
index 30288a7f211bcc3c322c22b4c46ca6cd9c5d429d..c8becbb40066bfc46ddaefbe3f4e1de3ee224312 100644
--- a/lib/src/js/printer.dart
+++ b/lib/src/js/printer.dart
@@ -844,9 +844,6 @@ class Printer implements NodeVisitor {
}
visitArrowFun(ArrowFun fun) {
- if (fun.bindThisWorkaround) {
- out("(");
- }
localNamer.enterScope(fun);
if (fun.params.length == 1) {
visitNestedExpression(fun.params.single, PRIMARY,
@@ -873,9 +870,6 @@ class Printer implements NodeVisitor {
blockBody(fun.body, needsSeparation: false, needsNewline: false);
}
localNamer.leaveScope();
- if (fun.bindThisWorkaround) {
- out(").bind(this)");
- }
}
visitLiteralBool(LiteralBool node) {
« no previous file with comments | « lib/src/js/nodes.dart ('k') | test/codegen/expect/BenchmarkBase.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698