#799: Abort occurs when will raise LocalJumpError with Proc.
----------------------------------+-----------------------------------------
Reporter: watson1...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Test Script:
{{{
$ cat test_proc_2.rb
def get_me_a_return
Proc.new { return 42 }
end
get_me_a_return.call # => LocalJumpError: unexpected return
}}}
Result of MacRuby Trunk:
{{{
$ macruby test_proc_2.rb
uncaught Objective-C/C++ exception...
terminate called after throwing an instance of
'RoxorReturnFromBlockException*'
zsh: abort macruby test_proc_2.rb
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/799>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel