Index: sdk/lib/_internal/pub/lib/src/command/serve.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/command/serve.dart b/sdk/lib/_internal/pub/lib/src/command/serve.dart |
index 1699797b8577ab1b3919aa6b0b971986f02b51eb..0d6a84d24a802ba82dcaab95d74ae5c166b6353e 100644 |
--- a/sdk/lib/_internal/pub/lib/src/command/serve.dart |
+++ b/sdk/lib/_internal/pub/lib/src/command/serve.dart |
@@ -87,7 +87,7 @@ class ServeCommand extends BarbackCommand { |
var watcherType = commandOptions['force-poll'] ? |
WatcherType.POLLING : WatcherType.AUTO; |
- return AssetEnvironment.create(entrypoint, mode, watcherType, |
+ return AssetEnvironment.create(entrypoint, mode, watcherType: watcherType, |
hostname: hostname, basePort: port, useDart2JS: useDart2JS) |
.then((environment) { |