Index: runtime/lib/isolate_patch.dart |
diff --git a/runtime/lib/isolate_patch.dart b/runtime/lib/isolate_patch.dart |
index de652acac29bd1541f7e6cc96f3b52a9db2ada37..79c895a87a3206d1be92c84eb517672bc87e4568 100644 |
--- a/runtime/lib/isolate_patch.dart |
+++ b/runtime/lib/isolate_patch.dart |
@@ -378,6 +378,12 @@ patch class Isolate { |
} |
} |
+ // Ensure to resolve package: URIs being handed in as parameters. |
+ packageRoot = (packageRoot == null) ? null : |
+ await Isolate.resolvePackageUri(packageRoot); |
+ packageConfig = (packageConfig == null) ? null : |
+ await Isolate.resolvePackageUri(packageConfig); |
+ |
// The VM will invoke [_startIsolate] and not `main`. |
readyPort = new RawReceivePort(); |
var packageRootString = packageRoot?.toString(); |