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

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

Issue 77043010: - Ensure that classes are finalized before their description is (Closed) Base URL: http://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
Index: runtime/bin/vmservice/client/build.dart
===================================================================
--- runtime/bin/vmservice/client/build.dart (revision 30528)
+++ runtime/bin/vmservice/client/build.dart (working copy)
@@ -13,10 +13,18 @@
compileToJs(_) {
print("Running dart2js");
+ var dart_path = Platform.executable;
Bob Nystrom 2013/11/21 21:23:53 Drive-by comment: The style guide for variables in
+ var bin_path = dart_path.substring(0, dart_path.lastIndexOf(Platform.pathSeparator));
+ var dart2js_path = "$bin_path${Platform.pathSeparator}dart2js";
var result =
- Process.runSync('dart2js',
+ Process.runSync(dart2js_path,
[ '--minify', '-o', 'out/web/index.html_bootstrap.dart.js',
'out/web/index.html_bootstrap.dart'], runInShell: true);
print(result.stdout);
+ print(result.stderr);
+ if (result.exitCode != 0) {
+ print("Running dart2js failed.");
+ exit(result.exitCode);
+ }
print("Done");
}

Powered by Google App Engine
This is Rietveld 408576698