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

Unified Diff: client/dart.js

Issue 10414077: Change the default Dart-to-JavaScript compiler in the editor to be dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « no previous file | editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/frog/FrogCompiler.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dart.js
diff --git a/client/dart.js b/client/dart.js
index 989fb5fc4fc41a912f010932dbf9e5f35338691e..061d78c96d2e04d24ed5d1ebe6784a1c960af378 100644
--- a/client/dart.js
+++ b/client/dart.js
@@ -19,10 +19,10 @@ if (navigator.webkitStartDart) {
// <script type="application/dart" src="<file>.dart"></script>
//
// If the script tag has a 'data-compiler' attribute set to
- // dart2js then we use the dart2js generated file rather than the
- // one produced by frog:
+ // frog then we use the frog generated file rather than the
+ // one produced by dart2js:
//
- // <script ... data-compiler="dart2js"></script>
+ // <script ... data-compiler="frog"></script>
//
var scripts = document.getElementsByTagName("script");
var length = scripts.length;
@@ -33,7 +33,7 @@ if (navigator.webkitStartDart) {
if (scripts[i].src && scripts[i].src != '') {
var script = document.createElement('script');
var compiler = scripts[i].getAttribute('data-compiler');
- if (compiler == "dart2js") {
+ if (compiler == "frog") {
script.src = scripts[i].src + '.js_';
} else {
script.src = scripts[i].src + '.js';
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/frog/FrogCompiler.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698