| Index: sdk/lib/_internal/pub/test/serve/utils.dart
|
| diff --git a/sdk/lib/_internal/pub/test/serve/utils.dart b/sdk/lib/_internal/pub/test/serve/utils.dart
|
| index 6ff10c0b74dad34081bc498c9293eba92851bfa2..1013aec04e2195e43f1b982221f1b38273b3b8ba 100644
|
| --- a/sdk/lib/_internal/pub/test/serve/utils.dart
|
| +++ b/sdk/lib/_internal/pub/test/serve/utils.dart
|
| @@ -100,19 +100,17 @@ class DartTransformer extends Transformer {
|
| ///
|
| /// Returns the `pub serve` process.
|
| ScheduledProcess startPubServe({bool shouldGetFirst: false,
|
| - bool dart2js: true}) {
|
| + Iterable<String> args}) {
|
| // Use port 0 to get an ephemeral port.
|
| - var args = ["serve", "--port=0", "--hostname=127.0.0.1"];
|
| + var pubArgs = ["serve", "--port=0", "--hostname=127.0.0.1"];
|
|
|
| - if (!dart2js) args.add("--no-dart2js");
|
| + if (args != null) pubArgs.addAll(args);
|
|
|
| // Dart2js can take a long time to compile dart code, so we increase the
|
| // timeout to cope with that.
|
| - if (dart2js) {
|
| - currentSchedule.timeout = new Duration(seconds: 15);
|
| - }
|
| + currentSchedule.timeout = new Duration(seconds: 15);
|
|
|
| - _pubServer = startPub(args: args);
|
| + _pubServer = startPub(args: pubArgs);
|
|
|
| currentSchedule.onComplete.schedule(() {
|
| if (_webSocket != null) {
|
|
|