31ac1d26f9
Right now the implementation of `Isolate.spawnUri(<uri>, ...)` in the standalone embedder is to ignore `<uri>` and make the spawnned isolate from the same AOT snapshot as the main isolate. This is very confusing and very incorrect. Instead `Isolate.spawnUri()` should work if-and-only-if the given `<uri>` points to a valid and compatible AOT snapshot. If not, it should throw an appropriate exception. Fixes https://github.com/dart-lang/sdk/issues/48375 Fixes https://github.com/dart-lang/sdk/issues/48326 TEST=vm/dart{,_2}/spawn_uri_aot_test Change-Id: I279ace08ac1b9a9eed3ae03ebe5d9e2336c1e5c9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/232603 Reviewed-by: Tess Strickland <sstrickl@google.com> Commit-Queue: Martin Kustermann <kustermann@google.com>