diff options
Diffstat (limited to 'zjit/src/cruby.rs')
-rw-r--r-- | zjit/src/cruby.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zjit/src/cruby.rs b/zjit/src/cruby.rs index e0334ed44d..3a1c45ffd3 100644 --- a/zjit/src/cruby.rs +++ b/zjit/src/cruby.rs @@ -1038,8 +1038,8 @@ pub mod test_utils { } /// Get the ISeq of a specified method - pub fn get_method_iseq(name: &str) -> *const rb_iseq_t { - let wrapped_iseq = eval(&format!("RubyVM::InstructionSequence.of(method(:{}))", name)); + pub fn get_method_iseq(recv: &str, name: &str) -> *const rb_iseq_t { + let wrapped_iseq = eval(&format!("RubyVM::InstructionSequence.of({}.method(:{}))", recv, name)); unsafe { rb_iseqw_to_iseq(wrapped_iseq) } } |