We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
END block should be called before at_exit callback
END
at_exit
Example:
at_exit { puts "at_exit callback" } END { puts "END code" }
TruffleRuby:
at_exit callback END code
Ruby 3.1.3:
END code at_exit callback
Extracted from a discussion here #2800 (comment)
The text was updated successfully, but these errors were encountered:
Example of mixed END blocks and at_exit callbacks (it works on CRuby 2.7-3.2):
it "runs them all in LIFO order" do ruby_exe(<<~RUBY).should == "at_exit#2\nEND#2\nat_exit#1\nEND#1\n" END { puts 'END#1' } at_exit { puts 'at_exit#1' } END { puts 'END#2' } at_exit { puts 'at_exit#2' } RUBY end
Sorry, something went wrong.
Fixed in cfc35bb
andrykonchin
No branches or pull requests
END
block should be called beforeat_exit
callbackExample:
TruffleRuby:
Ruby 3.1.3:
Extracted from a discussion here #2800 (comment)
The text was updated successfully, but these errors were encountered: