| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Patch file for dart:core classes. | 5 // Patch file for dart:core classes. |
| 6 import "dart:_collection-dev" as _symbol_dev; | 6 import "dart:_internal" as _symbol_dev; |
| 7 import 'dart:_interceptors'; | 7 import 'dart:_interceptors'; |
| 8 import 'dart:_js_helper' show checkNull, | 8 import 'dart:_js_helper' show checkNull, |
| 9 getRuntimeType, | 9 getRuntimeType, |
| 10 JSSyntaxRegExp, | 10 JSSyntaxRegExp, |
| 11 Primitives, | 11 Primitives, |
| 12 stringJoinUnchecked, | 12 stringJoinUnchecked, |
| 13 objectHashCode; | 13 objectHashCode; |
| 14 | 14 |
| 15 String _symbolToString(Symbol symbol) => _symbol_dev.Symbol.getName(symbol); | 15 String _symbolToString(Symbol symbol) => _symbol_dev.Symbol.getName(symbol); |
| 16 | 16 |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 323 |
| 324 patch class Uri { | 324 patch class Uri { |
| 325 patch static bool get _isWindows => false; | 325 patch static bool get _isWindows => false; |
| 326 | 326 |
| 327 patch static Uri get base { | 327 patch static Uri get base { |
| 328 String uri = Primitives.currentUri(); | 328 String uri = Primitives.currentUri(); |
| 329 if (uri != null) return Uri.parse(uri); | 329 if (uri != null) return Uri.parse(uri); |
| 330 throw new UnsupportedError("'Uri.base' is not supported"); | 330 throw new UnsupportedError("'Uri.base' is not supported"); |
| 331 } | 331 } |
| 332 } | 332 } |
| OLD | NEW |