Skip to content

Fix exit! command warning and method behavior - #868

Merged
st0012 merged 2 commits into
ruby:masterfrom
tompng:exit_bang_after
Feb 12, 2024
Merged

st0012 merged 2 commits into
ruby:masterfrom
tompng:exit_bang_after

Conversation

@tompng

@tompng tompng commented Feb 11, 2024

Copy link
Copy Markdown
Member

Delegator warning for irb(main):001> chws 1 can be suppressed.
There was a workaround for exit command. Add workaround for exit!.

Just like #298, rescue UncaughtThrowError part should emulate the original method. In this case, we should call Kernel.exit!

@st0012 st0012 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@st0012
st0012 merged commit 372bc59 into ruby:master Feb 12, 2024
matzbot pushed a commit to ruby/ruby that referenced this pull request Feb 12, 2024
(ruby/irb#868)

* Fix exit! command warning and method behavior

* Remove arg(0) from Kernel.exit and Kernel.exit!

ruby/irb@372bc59bf5
@tompng
tompng deleted the exit_bang_after branch February 12, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants