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

Unified Diff: lib/src/codegen/js_printer.dart

Issue 1643523008: fix #43, remove => workaround (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 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/codegen/js_codegen.dart ('k') | lib/src/js/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/js_printer.dart
diff --git a/lib/src/codegen/js_printer.dart b/lib/src/codegen/js_printer.dart
index 7503c7cd2b184413f71ddd15909ae32abbdcfbeb..65932a6afd7559fd94cc1666d9ac8d414774c8e1 100644
--- a/lib/src/codegen/js_printer.dart
+++ b/lib/src/codegen/js_printer.dart
@@ -18,7 +18,7 @@ import 'js_names.dart' show TemporaryNamer;
String writeJsLibrary(
JS.Program jsTree, String outputPath, String inputDir, Uri serverUri,
- {bool emitSourceMaps: false, bool arrowFnBindThisWorkaround: false}) {
+ {bool emitSourceMaps: false}) {
var outFilename = path.basename(outputPath);
var outDir = path.dirname(outputPath);
new Directory(outDir).createSync(recursive: true);
@@ -33,9 +33,7 @@ String writeJsLibrary(
}
var opts = new JS.JavaScriptPrintingOptions(
- allowKeywordsInProperties: true,
- allowSingleLineIfStatements: true,
- arrowFnBindThisWorkaround: arrowFnBindThisWorkaround);
+ allowKeywordsInProperties: true, allowSingleLineIfStatements: true);
var jsNamer = new TemporaryNamer(jsTree);
jsTree.accept(new JS.Printer(opts, context, localNamer: jsNamer));
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | lib/src/js/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698