Index: third_party/pkg/js/build.dart |
diff --git a/third_party/pkg/js/build.dart b/third_party/pkg/js/build.dart |
index 6e07343b7265c6f03be11a59ff3cf975a5d5bc98..1b36d2e13f03328c0d14654af332bdf1e2f58beb 100644 |
--- a/third_party/pkg/js/build.dart |
+++ b/third_party/pkg/js/build.dart |
@@ -8,13 +8,12 @@ library build; |
import 'tools/create_bootstrap.dart' as createBootstrap; |
import 'dart:io'; |
-void main() { |
- final options = new Options(); |
- final scriptPath = new Path(options.script).directoryPath; |
+void main(List<String> arguments) { |
+ final scriptPath = new Path(Platform.script).directoryPath; |
final libPath = scriptPath.append('lib'); |
final changedOpt = "--changed=${libPath.append('js.dart')}"; |
- for (String arg in new Options().arguments) { |
+ for (String arg in arguments) { |
if (arg == changedOpt) { |
createBootstrap.create(libPath); |
} |