Sha256: a14bab9e58fc5deedee7f224266f06bc8939b11b1d5391eb8d6a437fc1887e06
Contents?: true
Size: 556 Bytes
Versions: 6
Compression:
Stored size: 556 Bytes
Contents
require 'test/unit' require_relative '../../ext/thread_frame' class TestISeqSave < Test::Unit::TestCase def test_ISEQS__ Object.const_set("ISEQS__", {}) eval "def five; 5 end" iseq = Object.const_get('ISEQS__')['five'][0] assert_equal RubyVM::InstructionSequence, iseq.class assert_equal Hash, iseq.compile_options.class old_verbose = $VERBOSE $VERBOSE = nil Object.const_set("ISEQS__", nil) $VERBOSE = old_verbose end end # We want to double-check we didn't mess up any pointers somewhere. at_exit { GC.start }
Version data entries
6 entries across 6 versions & 1 rubygems