Skip to content

break in blocks doesn't work properly in some cases #270

Closed
kronos opened this Issue Apr 20, 2010 · 1 comment

2 participants

@kronos
Rubinius member
kronos commented Apr 20, 2010
def get_block(&block)
  block
end

get_block{break}.call # => should raise LocalJumpError exception
@evanphx
Rubinius member
evanphx commented May 5, 2010

Won't fix. In our opinion, break returning the caller of get_block is proper.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.