| Index: tools/dom/src/dart2js_LocationWrapper.dart
|
| diff --git a/tools/dom/src/dart2js_LocationWrapper.dart b/tools/dom/src/dart2js_LocationWrapper.dart
|
| index f430534da8cbc8bd45a81ca6f960f229b0718c9f..c943226f4d170258a3df2020d1dfff5cf2f60c45 100644
|
| --- a/tools/dom/src/dart2js_LocationWrapper.dart
|
| +++ b/tools/dom/src/dart2js_LocationWrapper.dart
|
| @@ -44,7 +44,12 @@ class _LocationWrapper implements Location {
|
| }
|
|
|
| // final String origin;
|
| - String get origin => _get(_ptr, 'origin');
|
| + String get origin {
|
| + if (JS('bool', '("origin" in #)', _ptr)) {
|
| + return JS('String', '#.origin', _ptr);
|
| + }
|
| + return '${this.protocol}//${this.host}';
|
| + }
|
|
|
| // String pathname;
|
| String get pathname => _get(_ptr, 'pathname');
|
|
|