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

Unified Diff: sdk/lib/io/console.dart

Issue 739153002: Make the ConsoleSink call methos argument optional. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | tests/standalone/io/console_script.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/console.dart
diff --git a/sdk/lib/io/console.dart b/sdk/lib/io/console.dart
index d41a9efb0feb80f97368487228bbc9ceab55d5db..c4ab7f27f0df3a043fb243c94da6f30f1ac1494e 100644
--- a/sdk/lib/io/console.dart
+++ b/sdk/lib/io/console.dart
@@ -51,7 +51,7 @@ class ConsoleSink implements Sink<List<int>>, StringSink {
_sink = new IOSink(new _ConsoleConsumer(fd));
}
- void call(Object message) => _sink.writeln(message);
+ void call([Object message = ""]) => _sink.writeln(message);
void add(List<int> data) => _sink.add(data);
« no previous file with comments | « no previous file | tests/standalone/io/console_script.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698