Merge pull request #1886 from iij/pr-kernel-loop-rescue-error

Kernel.loop should not catch StandardError.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-03-18 22:21:01 +09:00
+1 -1
View File
@@ -45,7 +45,7 @@ module Kernel
while(true)
yield
end
rescue => StopIteration
rescue StopIteration
nil
end