| Index: sdk/lib/_internal/compiler/js_lib/isolate_patch.dart
|
| diff --git a/sdk/lib/_internal/compiler/js_lib/isolate_patch.dart b/sdk/lib/_internal/compiler/js_lib/isolate_patch.dart
|
| index cbba9e54b77d0913767ba013296f15d724bd6238..b612cced56949081ebe6afb65137b8acae2c7d37 100644
|
| --- a/sdk/lib/_internal/compiler/js_lib/isolate_patch.dart
|
| +++ b/sdk/lib/_internal/compiler/js_lib/isolate_patch.dart
|
| @@ -14,6 +14,13 @@ import 'dart:_isolate_helper' show CapabilityImpl,
|
|
|
| @patch
|
| class Isolate {
|
| + static final _currentIsolateCache = IsolateNatives.currentIsolate;
|
| +
|
| + // `current` must be a getter, not just a final field,
|
| + // to match the external declaration.
|
| + @patch
|
| + static Isolate get current => _currentIsolateCache;
|
| +
|
| @patch
|
| static Future<Isolate> spawn(void entryPoint(message), var message,
|
| { bool paused: false }) {
|
|
|