Project

General

Profile

« Previous | Next » 

Revision a72581d7

Added by nobu (Nobuyoshi Nakada) about 6 years ago

error.c: super in method_missing

  • error.c (nometh_err_initialize): do not shirtcut rb_call_super,
    to push proper control frame. [ruby-dev:50522] [Bug #14670]

  • error.c (rb_nomethod_err_new): allocate and initialize a new
    NoMethodError instance.

  • vm_eval.c (rb_make_no_method_exception): create a new exception
    instance directly without method calls, to prevent influence of
    ruby level method definitions, which can cause an unpredictable
    behavior, e.g., infinite recursion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e