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

Unified Diff: sdk/lib/_internal/lib/io_patch.dart

Issue 18516002: Add Stdio.readByteSync and Stdio.readLineSync. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Handle \r\r\n. Created 7 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 | « runtime/bin/stdio_patch.dart ('k') | sdk/lib/io/stdio.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/io_patch.dart
diff --git a/sdk/lib/_internal/lib/io_patch.dart b/sdk/lib/_internal/lib/io_patch.dart
index 9e573409ac8357e2fa6775dcc377ee53a856c6f0..b152e1eb308d1eaf8acb96ab8f237f5813a995b3 100644
--- a/sdk/lib/_internal/lib/io_patch.dart
+++ b/sdk/lib/_internal/lib/io_patch.dart
@@ -289,7 +289,7 @@ patch class _SecureFilter {
}
patch class _StdIOUtils {
- patch static Stream<List<int>> _getStdioInputStream() {
+ patch static Stdio _getStdioInputStream() {
throw new UnsupportedError("StdIOUtils._getStdioInputStream");
}
patch static IOSink _getStdioOutputStream(int fd) {
@@ -320,3 +320,9 @@ patch class _Filter {
throw new UnsupportedError("newZLibInflateFilter");
}
}
+
+patch class Stdin {
+ patch int readByteSync() {
+ throw new UnsupportedError("Stdin.readByteSync");
+ }
+}
« no previous file with comments | « runtime/bin/stdio_patch.dart ('k') | sdk/lib/io/stdio.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698