1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (backtrace): porting miss.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2006-07-24 14:53:42 +00:00
parent 2e7a8bf228
commit c0e5d45a1e

2
eval.c
View file

@ -6162,7 +6162,7 @@ backtrace(int lev)
for (; frame && (n = frame->node); frame = frame->prev) {
if (frame->prev && frame->prev->this_func) {
if (frame->prev->node == n) {
if (frame->prev->last_func == frame->last_func) continue;
if (frame->prev->this_func == frame->this_func) continue;
}
str = error_line(frame->prev, n);
}