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

Unified Diff: lib/isolate/frog/natives.js

Issue 9967024: fix bug in isolate code, reenable isolate tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
« no previous file with comments | « lib/isolate/frog/isolateimpl.dart ('k') | tests/isolate/isolate.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/isolate/frog/natives.js
diff --git a/lib/isolate/frog/natives.js b/lib/isolate/frog/natives.js
index d2543442d0dff1372f9c35ef904c553747b4ba20..62ad76e63f7af6254b94c82dccd00f5514fb9fba 100644
--- a/lib/isolate/frog/natives.js
+++ b/lib/isolate/frog/natives.js
@@ -17,8 +17,9 @@ Function.prototype.wrap$call$0 = function() {
var isolateContext = $globalState.currentContext;
var self = this;
this.wrap$0 = function() {
- isolateContext.eval(self);
+ var res = isolateContext.eval(self);
$globalState.topEventLoop.run();
+ return res;
};
this.wrap$call$0 = function() { return this.wrap$0; };
return this.wrap$0;
@@ -31,8 +32,9 @@ Function.prototype.wrap$call$1 = function() {
var isolateContext = $globalState.currentContext;
var self = this;
this.wrap$1 = function(arg) {
- isolateContext.eval(function() { self(arg); });
+ var res = isolateContext.eval(function() { return self(arg); });
$globalState.topEventLoop.run();
+ return res;
};
this.wrap$call$1 = function() { return this.wrap$1; };
return this.wrap$1;
« no previous file with comments | « lib/isolate/frog/isolateimpl.dart ('k') | tests/isolate/isolate.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698