| Index: sdk/lib/_internal/compiler/js_lib/isolate_helper.dart
|
| diff --git a/sdk/lib/_internal/compiler/js_lib/isolate_helper.dart b/sdk/lib/_internal/compiler/js_lib/isolate_helper.dart
|
| index 90620facc95632643c4a0b6486d6a212917866ff..ae27e0f9b6e5eafa6d25af9cac3b3879e5634156 100644
|
| --- a/sdk/lib/_internal/compiler/js_lib/isolate_helper.dart
|
| +++ b/sdk/lib/_internal/compiler/js_lib/isolate_helper.dart
|
| @@ -1015,6 +1015,13 @@ class IsolateNatives {
|
| }, 'nonworker start');
|
| }
|
|
|
| + static Isolate get currentIsolate {
|
| + _IsolateContext context = JS_CURRENT_ISOLATE_CONTEXT();
|
| + return new Isolate(context.controlPort.sendPort,
|
| + pauseCapability: context.pauseCapability,
|
| + terminateCapability: context.terminateCapability);
|
| + }
|
| +
|
| static void _startIsolate(Function topLevel,
|
| List<String> args, message,
|
| bool isSpawnUri,
|
|
|