Index: dart/sdk/lib/js/dart2js/js_dart2js.dart |
diff --git a/dart/sdk/lib/js/dart2js/js_dart2js.dart b/dart/sdk/lib/js/dart2js/js_dart2js.dart |
index 84ec8f356708b114ff9915d2aedadfbc6da46781..27fac2e1e9d2fb5a9ed64ce926cb0652556870cb 100644 |
--- a/dart/sdk/lib/js/dart2js/js_dart2js.dart |
+++ b/dart/sdk/lib/js/dart2js/js_dart2js.dart |
@@ -97,7 +97,7 @@ import 'dart:_interceptors' show JavaScriptObject, UnknownJavaScriptObject; |
import 'dart:_js_helper' show Primitives, convertDartClosureToJS, |
getIsolateAffinityTag; |
-final JsObject context = _wrapToDart(Primitives.computeGlobalThis()); |
+final JsObject context = _wrapToDart(JS('', 'self')); |
_convertDartFunction(Function f, {bool captureThis: false}) { |
return JS('', |