Index: sdk/lib/_internal/lib/js_helper.dart |
diff --git a/sdk/lib/_internal/lib/js_helper.dart b/sdk/lib/_internal/lib/js_helper.dart |
index ddeb666771caa7e66c829eeb757321952dcc4120..cf784246900fe4913688ebf5cdc96ee325aa4ebb 100644 |
--- a/sdk/lib/_internal/lib/js_helper.dart |
+++ b/sdk/lib/_internal/lib/js_helper.dart |
@@ -279,6 +279,8 @@ class Primitives { |
return JS('int', '#', hash); |
} |
+ static computeGlobalThis() => JS('', 'function() { return this; }()'); |
+ |
/** |
* This is the low-level method that is used to implement |
* [print]. It is possible to override this function from JavaScript |