Project

General

Profile

« Previous | Next » 

Revision 9fa0d005

Added by nobu (Nobuyoshi Nakada) almost 6 years ago

irb.rb: restore the last error

  • lib/irb.rb (eval_input): restore the last error $!, as the
    previous result. [Feature #14684]

  • lib/irb/context.rb (evaluate): add exception keyword argument
    to set the last error.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e