| Index: runtime/bin/directory_patch.dart
|
| diff --git a/runtime/bin/directory_patch.dart b/runtime/bin/directory_patch.dart
|
| index 27ca94f44f7a4f0e7c5ee979a6c0f6996d3f5c83..5e4d24c57a85f927b621de1876d7ca8977d24052 100644
|
| --- a/runtime/bin/directory_patch.dart
|
| +++ b/runtime/bin/directory_patch.dart
|
| @@ -46,3 +46,16 @@ class _AsyncDirectoryListerOpsImpl extends NativeFieldWrapperClass1
|
| native "Directory_SetAsyncDirectoryListerPointer";
|
| int getPointer() native "Directory_GetAsyncDirectoryListerPointer";
|
| }
|
| +
|
| +// Corelib 'Uri.base' implementation.
|
| +// Uri.base is susceptible to changes in the current working directory.
|
| +Uri _uriBaseClosure() {
|
| + var result = _Directory._current();
|
| + if (result is OSError) {
|
| + throw new FileSystemException(
|
| + "Getting current working directory failed", "", result);
|
| + }
|
| + return new Uri.directory(result);
|
| +}
|
| +
|
| +_getUriBaseClosure() => _uriBaseClosure;
|
|
|