| Index: dart/sdk/lib/_internal/lib/js_helper.dart
|
| diff --git a/dart/sdk/lib/_internal/lib/js_helper.dart b/dart/sdk/lib/_internal/lib/js_helper.dart
|
| index 4fab0b2d7fcd6c205b2c2e8ff72a6988c5340960..8f87ac4f8cbdcc4871f860ed5a5ff805f8c31cf1 100644
|
| --- a/dart/sdk/lib/_internal/lib/js_helper.dart
|
| +++ b/dart/sdk/lib/_internal/lib/js_helper.dart
|
| @@ -552,8 +552,6 @@ class Primitives {
|
| return JS('int', '#', hash);
|
| }
|
|
|
| - static computeGlobalThis() => JS('', 'function() { return this; }()');
|
| -
|
| static _throwFormatException(String string) {
|
| throw new FormatException(string);
|
| }
|
| @@ -721,7 +719,7 @@ class Primitives {
|
|
|
| static String currentUri() {
|
| // In a browser return self.location.href.
|
| - if (JS('bool', 'typeof self != "undefined"')) {
|
| + if (JS('bool', '!!self.location')) {
|
| return JS('String', 'self.location.href');
|
| }
|
|
|
|
|