• Yukihiro "Matz" Matsumoto's avatar
    Fixed method look-up for `method_missing` in OP_SUPER; ref #3905 · 165e7b18
    Yukihiro "Matz" Matsumoto authored
    Method look-up for `OP_SUPER` should start from the superclass of
    the `target_class` but if it fails, the look-up for `method_missing`
    should start from the class of the receiver.
    
    The following code explains the case:
    ```ruby
    class Bar
      def foo
        super
      end
    end
    
    class Foo<Bar
      def method_missing(mid, *)
        p mid
      end
    end
    ```
    Foo.new.foo
    165e7b18
vm.c 76.5 KB