[ruby-cvs:70240] nobu:r63150 (trunk): irb.rb: restore the last error

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Apr 14 22:05:52 JST 2018


nobu	2018-04-14 22:05:52 +0900 (Sat, 14 Apr 2018)

  New Revision: 63150

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63150

  Log:
    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.

  Modified files:
    trunk/lib/irb/context.rb
    trunk/lib/irb.rb
    trunk/test/irb/test_context.rb


More information about the ruby-cvs mailing list