Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: runtime/bin/builtin.dart

Issue 980603002: Make sure to check for OS errors when constructing Uri.base (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed the native declaration Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.dart
diff --git a/runtime/bin/builtin.dart b/runtime/bin/builtin.dart
index f5eec7e48141bd38a24990e1ce948b38ce9cfe90..3b3a3b00679d845c3147cb381bb2e466ebc2fb2d 100644
--- a/runtime/bin/builtin.dart
+++ b/runtime/bin/builtin.dart
@@ -112,11 +112,9 @@ class _Logger {
_getPrintClosure() => _print;
-_getCurrentDirectoryPath() native "Directory_Current";
-
// Corelib 'Uri.base' implementation.
Uri _uriBase() {
Søren Gjesse 2015/03/04 12:48:13 We could also do this, if we care about not alloca
Ivan Posva 2015/03/04 17:36:25 By using Directory.current you need to import "dar
- return new Uri.file(_getCurrentDirectoryPath() + "/");
+ return new Uri.file(Directory.current.path + "/");
}
_getUriBaseClosure() => _uriBase;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698