mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:21:18 +00:00
- Do not even attempt to spawn an isolate if the local script
URI cannot be determined. BUG= Review URL: https://codereview.chromium.org/1586003003 .
This commit is contained in:
parent
82aeb1997e
commit
04debc9c82
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue