Index: runtime/lib/isolate_patch.dart |
diff --git a/runtime/lib/isolate_patch.dart b/runtime/lib/isolate_patch.dart |
index 09ae531fecd09a63a4ed8963c9c5b38f90a9a9ca..4dd89c0e7ca70bedc2d2d9f79cdd67c8bd777610 100644 |
--- a/runtime/lib/isolate_patch.dart |
+++ b/runtime/lib/isolate_patch.dart |
@@ -312,13 +312,12 @@ patch class Isolate { |
try { |
// The VM will invoke [_startIsolate] with entryPoint as argument. |
readyPort = new RawReceivePort(); |
- var packageRoot = null; |
- var packageConfig = null; |
- if (Isolate._packageSupported()) { |
- packageRoot = (await Isolate.packageRoot)?.toString(); |
- packageConfig = (await Isolate.packageConfig)?.toString(); |
- } |
+ // We do not inherit the package root or package config settings |
+ // from the parent isolate, instead we use the values that were |
+ // set on the command line. |
+ var packageRoot = VMLibraryHooks.packageRootString; |
+ var packageConfig = VMLibraryHooks.packageConfigString; |
var script = VMLibraryHooks.platformScript; |
if (script == null) { |
// We do not have enough information to support spawning the new |