Skip to content

Commit c7f7eb5

Browse files
committed
Only call load_iseq if it's defined
In some cases such as loading `netrc` the `super` call is erroring with `super: no superclass method 'load_iseq' for class RubyVM::InstructionSequence (NoMethodError)`
1 parent 69ec4aa commit c7f7eb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tapioca/rbs/rewriter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module ISeq
2626
module InstructionSequenceMixin
2727
#: (String) -> RubyVM::InstructionSequence
2828
def load_iseq(path)
29-
super
29+
super if defined?(super)
3030
end
3131
end
3232
end

0 commit comments

Comments
 (0)