[ruby-cvs:67681] a_matsuda:r60500 (trunk): Fix example that trace method is called outside block

a_matsuda at ruby-lang.org a_matsuda at ruby-lang.org
Sat Oct 28 15:49:51 JST 2017


a_matsuda	2017-10-28 15:49:50 +0900 (Sat, 28 Oct 2017)

  New Revision: 60500

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60500

  Log:
    Fix example that trace method is called outside block
    
    [ci skip]
    
    `TracePoint` doesn't have the `line` method.
    Therefore, this example will raise `NoMethodError`.
    But since it does not seem to be the intended error, use the existing `lineno`
    method instead.
    
    Patch by: yuuji.yaginuma <yuuji.yaginuma at gmail.com>
    
    https://github.com/ruby/ruby/pull/1731
    [Fix GH-1731]

  Modified files:
    trunk/vm_trace.c


More information about the ruby-cvs mailing list