mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/tracer.rb: count only non-internal libraries in stack trace,
ignoring custom_require. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e36395dce6
commit
58018f1f2d
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jun 28 23:46:08 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||
|
||||
* lib/tracer.rb: count only non-internal libraries in stack trace,
|
||||
ignoring custom_require.
|
||||
|
||||
Tue Jun 28 21:44:58 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||
|
||||
* lib/irb/ruby-lex.rb: recognize '\char' in ruby statement.
|
||||
|
|
|
@ -287,7 +287,7 @@ if $0 == __FILE__
|
|||
ARGV.shift
|
||||
Tracer.on
|
||||
require $0
|
||||
elsif caller.count {|bt| /\A<internal:[^<>]+>:/ !~ bt} <= 1
|
||||
elsif caller.count {|bt| /\/rubygems\/custom_require.rb:/ !~ bt} <= 1
|
||||
Tracer.on
|
||||
end
|
||||
# :startdoc:
|
||||
|
|
Loading…
Reference in a new issue