Bug #9038
Updated by nobu (Nobuyoshi Nakada) almost 10 years ago
=begin In Ruby 2.1.0dev (2013-10-20 trunk 43373), `instance_eval` (({instance_eval})) throws a `RuntimeError` (({RuntimeError})) when it should throw a `SyntaxError`, (({SyntaxError})), but only the first time it is called. If you use an IRB session to call `instance_eval` (({instance_eval})) a second time with the exact same arguments, it produces the expected `SyntaxError` (({SyntaxError})) instead of . Here is an example: `ruby (({ruby -e "instance_eval('/unquoted/string/syntax/error')"` "instance_eval('/unquoted/string/syntax/error')"})) That example raises a `SyntaxError` (({SyntaxError})) on Ruby 2.0.0p247, but raises a `RuntimeError` (({RuntimeError})) on 2.1.0dev (2013-10-20 trunk 43373). =end