| Index: runtime/lib/isolate_patch.dart
|
| diff --git a/runtime/lib/isolate_patch.dart b/runtime/lib/isolate_patch.dart
|
| index c93c27dc30cde0525d42bb3853146868353cb1eb..09ae531fecd09a63a4ed8963c9c5b38f90a9a9ca 100644
|
| --- a/runtime/lib/isolate_patch.dart
|
| +++ b/runtime/lib/isolate_patch.dart
|
| @@ -320,10 +320,13 @@ patch class Isolate {
|
| }
|
|
|
| var script = VMLibraryHooks.platformScript;
|
| - if (script != null) {
|
| - if (script.scheme == "package") {
|
| - script = await Isolate.resolvePackageUri(script);
|
| - }
|
| + if (script == null) {
|
| + // We do not have enough information to support spawning the new
|
| + // isolate.
|
| + throw new UnsupportedError("Isolate.spawn");
|
| + }
|
| + if (script.scheme == "package") {
|
| + script = await Isolate.resolvePackageUri(script);
|
| }
|
|
|
| _spawnFunction(readyPort.sendPort, script.toString(), entryPoint, message,
|
|
|