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

Unified Diff: dart/sdk/lib/js/dart2js/js_dart2js.dart

Issue 345533004: Use "self" instead of globalThis. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r37482. Created 6 years, 6 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 | « dart/sdk/lib/_internal/lib/preambles/jsshell.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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('',
« no previous file with comments | « dart/sdk/lib/_internal/lib/preambles/jsshell.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698