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

Unified Diff: lib/compiler/implementation/lib/io.dart

Issue 10634027: Fix dart2js mock of dart:io, to incorporate new File.fromPath and Directory.fromPath. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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: lib/compiler/implementation/lib/io.dart
diff --git a/lib/compiler/implementation/lib/io.dart b/lib/compiler/implementation/lib/io.dart
index 9191d3f11473b30720830a5e0b1499d30863b445..751a5052d4eec47c166a39d053aa27101f8a77aa 100644
--- a/lib/compiler/implementation/lib/io.dart
+++ b/lib/compiler/implementation/lib/io.dart
@@ -62,6 +62,10 @@ class _File {
factory File(arg) {
throw new UnsupportedOperationException('new File($arg)');
}
+
+ factory File.fromPath(arg) {
+ throw new UnsupportedOperationException('new File.fromPath($arg)');
+ }
}
class _Platform {
@@ -91,6 +95,10 @@ class _Directory {
throw new UnsupportedOperationException('new Directory($arg)');
}
+ factory Directory.fromPath(arg) {
+ throw new UnsupportedOperationException('new Directory.fromPath($arg)');
+ }
+
factory Directory.current() {
throw new UnsupportedOperationException('new Directory.current()');
}
« 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