Chromium Code Reviews| Index: runtime/bin/builtin.dart |
| diff --git a/runtime/bin/builtin.dart b/runtime/bin/builtin.dart |
| index adc1c636d1b0c6cd01d6aea2276b20154954af51..45bac8eb16420fa044f5d5d36376605b098156a5 100644 |
| --- a/runtime/bin/builtin.dart |
| +++ b/runtime/bin/builtin.dart |
| @@ -15,6 +15,33 @@ void exit(int status) { |
| _exit(status); |
| } |
| +Socket _stdin ; |
|
Mads Ager (google)
2011/11/11 11:37:36
Remove space before ';'.
|
| +OutputStream get stdin() { |
| + if (_stdin == null) { |
| + _stdin = new _Socket._internalReadOnly(); |
| + _stdin._id = 0; |
| + } |
| + return _stdin.inputStream; |
| +} |
| + |
| +Socket _stdout; |
| +OutputStream get stdout() { |
| + if (_stdout == null) { |
| + _stdout = new _Socket._internalWriteOnly(); |
| + _stdout._id = 1; |
| + } |
| + return _stdout.outputStream; |
| +} |
| + |
| +Socket _stderr; |
| +OutputStream get stderr() { |
| + if (_stderr == null) { |
| + _stderr = new _Socket._internalWriteOnly(); |
| + _stderr._id = 2; |
| + } |
| + return _stderr.outputStream; |
| +} |
| + |
| _exit(int status) native "Exit"; |
| class _Logger { |