| Index: frog/corejs.dart
|
| diff --git a/frog/corejs.dart b/frog/corejs.dart
|
| index 8f83e22e875a2affc37e9f6929eea23d0a2b4486..5fe74d433586f46a6ef7954dcf7385448e4e06f6 100644
|
| --- a/frog/corejs.dart
|
| +++ b/frog/corejs.dart
|
| @@ -397,10 +397,10 @@ Array.prototype.$setindex = function(i, value) { return this[i] = value; }""");
|
| // Wrap a 0-arg dom-callback to bind it with the current isolate:
|
| function $wrap_call$0(fn) { return fn && fn.wrap$call$0(); }
|
| Function.prototype.wrap$call$0 = function() {
|
| - var isolate = $globalState.currentIsolate;
|
| + var isolateContext = $globalState.currentContext;
|
| var self = this;
|
| this.wrap$0 = function() {
|
| - isolate.eval(self);
|
| + isolateContext.eval(self);
|
| $globalState.topEventLoop.run();
|
| };
|
| this.wrap$call$0 = function() { return this.wrap$0; };
|
| @@ -412,10 +412,10 @@ Function.prototype.wrap$call$0 = function() {
|
| // Wrap a 1-arg dom-callback to bind it with the current isolate:
|
| function $wrap_call$1(fn) { return fn && fn.wrap$call$1(); }
|
| Function.prototype.wrap$call$1 = function() {
|
| - var isolate = $globalState.currentIsolate;
|
| + var isolateContext = $globalState.currentContext;
|
| var self = this;
|
| this.wrap$1 = function(arg) {
|
| - isolate.eval(function() { self(arg); });
|
| + isolateContext.eval(function() { self(arg); });
|
| $globalState.topEventLoop.run();
|
| };
|
| this.wrap$call$1 = function() { return this.wrap$1; };
|
| @@ -424,6 +424,7 @@ Function.prototype.wrap$call$1 = function() {
|
| }
|
| w.writeln(@"""
|
| var $globalThis = this;
|
| +var $globals = null;
|
| var $globalState = null;""");
|
| } else {
|
| if (useWrap0) {
|
|
|