Commit 598385e2 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

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

Kernel.loop should not catch StandardError.
parents 4893a1f4 4b4784f9
......@@ -45,7 +45,7 @@ module Kernel
while(true)
yield
end
rescue => StopIteration
rescue StopIteration
nil
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment