instruction_sequence -> RubyVM::InstructionSequenceRuby 2.6.0 から[permalink][rdoc][edit]-
script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
例TracePoint.new(:script_compiled) do |tp| p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1> end.enable do eval("puts 'hello'") end- [EXCEPTION]
RuntimeError: - :script_compiled イベントのためのイベントフックの外側で実行した場合に発生します。
- [EXCEPTION]