Index: sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart b/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart |
index 54bbdc140c44b724ca5e6aee8cf8bdd7c229f86d..e978a610799df179a313d0e51242997e617010d8 100644 |
--- a/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart |
+++ b/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart |
@@ -20,9 +20,10 @@ ReceivePort lazyPort; |
* Called by the compiler to support switching |
* between isolates when we get a callback from the DOM. |
*/ |
-void _callInIsolate(_IsolateContext isolate, Function function) { |
- isolate.eval(function); |
+_callInIsolate(_IsolateContext isolate, Function function) { |
+ var result = isolate.eval(function); |
_globalState.topEventLoop.run(); |
+ return result; |
} |
/** |