Actions
Bug #1617
closedException Raised by Uncaught Throw (Disagreement Between Documentation and Reality)
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-06-01 trunk 23614) [i686-linux]
Backport:
Description
=begin
On 1.9 an ArgumentError is raised when a symbol is thrown without being subsequently caught:
>> throw :foo
ArgumentError: uncaught throw :foo
from (irb):2:in `throw'
from (irb):2
from /usr/local/bin/irb:12:in `<main>'
The documentation for throw states "Raises +NameError+ if there is no +catch+ block for the symbol." Either the documentation or the code is wrong. (Question previously raised in [ruby-core:17629] by Vladimir Sizikov nearly a year ago).
=end
Updated by nobu (Nobuyoshi Nakada) about 16 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r23673.
=end
Actions
Like0
Like0