From cf21c72cdbe9a9481925c978eccd211f7e9536ef Mon Sep 17 00:00:00 2001 From: tomoya ishida Date: Thu, 12 Oct 2023 22:55:41 +0900 Subject: [ruby/irb] Fix test runner exit bug (https://github.com/ruby/irb/pull/728) * Remove useless test setup and teardown that sets MAIN_CONTEXT to nil * Avoid adding command methods to main object in test https://github.com/ruby/irb/commit/f204829a08 --- lib/irb/extend-command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb index cce7f8a4a7..514293a438 100644 --- a/lib/irb/extend-command.rb +++ b/lib/irb/extend-command.rb @@ -22,7 +22,7 @@ module IRB # :nodoc: # # Same as IRB.CurrentContext.exit. def irb_exit(ret = 0) - irb_context&.exit(ret) + irb_context.exit(ret) end # Displays current configuration. -- cgit v1.2.3