| Index: sdk/lib/_internal/lib/isolate_helper.dart
|
| diff --git a/sdk/lib/_internal/lib/isolate_helper.dart b/sdk/lib/_internal/lib/isolate_helper.dart
|
| index 7a6e620372d45025e6e4497f2f2be1347d6c9a4c..9d1261826107f9590de2702047050c17d51ee7eb 100644
|
| --- a/sdk/lib/_internal/lib/isolate_helper.dart
|
| +++ b/sdk/lib/_internal/lib/isolate_helper.dart
|
| @@ -606,7 +606,13 @@ class IsolateNatives {
|
|
|
| // TODO(sigmund): clean up above, after we make the new API the default:
|
|
|
| + /// If [uri] is `null` it is replaced with the current script.
|
| static spawn(String functionName, String uri, bool isLight) {
|
| + // Assume that the compiled version of the Dart file lives just next to the
|
| + // dart file.
|
| + // TODO(floitsch): support precompiled version of dart2js output.
|
| + if (uri != null && uri.endsWith(".dart")) uri += ".js";
|
| +
|
| Completer<SendPort> completer = new Completer.sync<SendPort>();
|
| ReceivePort port = new ReceivePort();
|
| port.receive((msg, SendPort replyPort) {
|
|
|