• Yukihiro "Matz" Matsumoto's avatar
    Avoid direct return from ecall(); fix #3441 · 1f2d786e
    Yukihiro "Matz" Matsumoto authored
    There's incompatibility left for mruby.
    
    When you return from `ensure` clause, mruby simply ignores the return
    value.  CRuby returns from the method squashing the exception raised.
    
    ```
    def f
      no_such_method() # NoMethodError
    ensure
      return 22
    end
    
    p f() # CRuby prints `22`
    ```
    1f2d786e
vm.c 64.3 KB