Skip to content

Commit

Permalink
STDERR, STDOUT, STDIN are now instances of IO
Browse files Browse the repository at this point in the history
These 3 objects still cant write anywhere, but their classes are now
correct ready for platforms to implement them as required.
  • Loading branch information
adambeynon committed Aug 5, 2013
1 parent 7b301e5 commit 3236511
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions corelib/opal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
FALSE = false
NIL = nil

STDERR = $stderr = Object.new
STDIN = $stdin = Object.new
STDOUT = $stdout = Object.new
STDERR = $stderr = IO.new
STDIN = $stdin = IO.new
STDOUT = $stdout = IO.new

RUBY_PLATFORM = 'opal'
RUBY_ENGINE = 'opal'
Expand Down

0 comments on commit 3236511

Please sign in to comment.