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

Unified Diff: runtime/bin/vmservice/client/build.dart

Issue 59283007: List scripts in library and display script source (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | runtime/bin/vmservice/client/deployed/web/index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/client/build.dart
diff --git a/runtime/bin/vmservice/client/build.dart b/runtime/bin/vmservice/client/build.dart
index 71faf8b6dc5c99667d354ea22048037e44ccb8b3..627da4e2868ea8fde873ff9d8d18e2ed280dc784 100644
--- a/runtime/bin/vmservice/client/build.dart
+++ b/runtime/bin/vmservice/client/build.dart
@@ -13,9 +13,12 @@ main() {
compileToJs(_) {
print("Running dart2js");
- var dart_path = Platform.executable;
- var bin_path = dart_path.substring(0, dart_path.lastIndexOf(Platform.pathSeparator));
- var dart2js_path = "$bin_path${Platform.pathSeparator}dart2js";
+ var dart_path = Platform.executable;
+ var dart2js_path = 'dart2js';
+ if (dart_path.lastIndexOf(Platform.pathSeparator) != -1) {
+ var bin_path = dart_path.substring(0, dart_path.lastIndexOf(Platform.pathSeparator));
+ dart2js_path = "$bin_path${Platform.pathSeparator}dart2js";
+ }
var result =
Process.runSync(dart2js_path,
[ '--minify', '-o', 'out/web/index.html_bootstrap.dart.js',
« no previous file with comments | « no previous file | runtime/bin/vmservice/client/deployed/web/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698