Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart

Issue 12218111: Allowing Window.onBeforeUnload event to work properly. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding support for FireFox Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
/**

Powered by Google App Engine
This is Rietveld 408576698