Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class method

ZJIT.induce_compile_failure!

induce_compile_failure!(= nil)

A directive for the compiler to fail to compile the call to this method. To show this to ZJIT, say ::RubyVM::ZJIT.induce_compile_failure! verbatim. Other forms are too dynamic to detect during compilation.

Actually running this method does nothing, whether ZJIT sees the call or not.