Index: sdk/lib/_internal/dartdoc/lib/dartdoc.dart |
diff --git a/sdk/lib/_internal/dartdoc/lib/dartdoc.dart b/sdk/lib/_internal/dartdoc/lib/dartdoc.dart |
index 9057b6e8a45660a1e3e1fda3bbe00629f3754d91..b20f3cbe05b040f43b7724edf2d7551616b5571f 100644 |
--- a/sdk/lib/_internal/dartdoc/lib/dartdoc.dart |
+++ b/sdk/lib/_internal/dartdoc/lib/dartdoc.dart |
@@ -149,7 +149,7 @@ Future compileScript(int mode, Path outputDir, Path libPath) { |
void _compileScript() { |
port.receive((message, replyTo) { |
- new Future.of(() { |
+ new Future.sync(() { |
var clientScript = (message['mode'] == MODE_STATIC) ? |
'static' : 'live-nav'; |
var dartPath = pathos.join(message['libPath'], 'lib', '_internal', |