Permalink
Browse files

Patched Enumerator#next for 1.9 behavior

  • Loading branch information...
1 parent fedd69b commit 71098f668066e58616264c130bf6f8de493edcc2 @jtdowney jtdowney committed Oct 23, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −1 kernel/common/enumerator.rb
  2. +0 −1 spec/tags/19/ruby/core/enumerator/next_tags.txt
@@ -188,7 +188,7 @@ def next
rescue StopIteration
end
- @generator.rewind
+ @generator.rewind if Rubinius.ruby18?
raise StopIteration, "iteration reached end"
end
@@ -1 +0,0 @@
-fails:Enumerator#next cannot be called again until the enumerator is rewound

0 comments on commit 71098f6

Please sign in to comment.