| Index: lib/html/dartium/html_dartium.dart
|
| diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
|
| index f4a7f67c2d23e0a184a3247d30d6bd6bb13bb0c0..8f13b284a9eb387f431705c73359f288856ab965 100644
|
| --- a/lib/html/dartium/html_dartium.dart
|
| +++ b/lib/html/dartium/html_dartium.dart
|
| @@ -41202,15 +41202,7 @@ class _Deserializer {
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| // This API is exploratory.
|
| -spawnDomIsolate(Window targetWindow, String entryPoint) {
|
| - if (targetWindow is! _DOMWindowImpl && targetWindow is! _DOMWindowCrossFrameImpl) {
|
| - throw 'Bad window argument: $targetWindow';
|
| - }
|
| - final result = new Completer<SendPort>();
|
| - final port = _Utils.spawnDomIsolateImpl(targetWindow, entryPoint);
|
| - window.setTimeout(() { result.complete(port); }, 0);
|
| - return result.future;
|
| -}
|
| +spawnDomFunction(Function topLevelFunction) => _Utils.spawnDomFunctionImpl(topLevelFunction);
|
|
|
| // layoutTestController implementation.
|
| // FIXME: provide a separate lib for layoutTestController.
|
| @@ -41268,7 +41260,7 @@ class _Utils {
|
| }
|
|
|
| static window() native "Utils_window";
|
| - static SendPort spawnDomIsolateImpl(Window window, String entryPoint) native "Utils_spawnDomIsolate";
|
| + static SendPort spawnDomFunctionImpl(Function topLevelFunction) native "Utils_spawnDomFunction";
|
| static int _getNewIsolateId() native "Utils_getNewIsolateId";
|
| }
|
|
|
|
|