aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tracer.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-21 09:23:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-21 09:23:28 +0000
commit63b6b9c43003cd5071748efca0a6d9b066834c5b (patch)
treef8118586a62a230db5e7a53998ec7c8775b78eac /lib/tracer.rb
parente93b8f1c892672a06bd6861859373e7bec49c3f6 (diff)
downloadruby-63b6b9c43003cd5071748efca0a6d9b066834c5b.tar.gz
* time.c (time_plus): result should not be negative unless
NEGATIVE_TIME_T is defined. * time.c (time_new_internal): should check tv_sec overflow too. * time.c (time_timeval): should check time_t range when time is initialized from float. * time.c (time_plus): uses modf(3). * variable.c (rb_cvar_set): add frozen class/module check. * variable.c (rb_cvar_declare): add frozen class/module check. * re.c (match_to_a): should propagate taint. * re.c (rb_reg_s_quote): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tracer.rb')
-rw-r--r--lib/tracer.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tracer.rb b/lib/tracer.rb
index dbe18eacc2..817f68484e 100644
--- a/lib/tracer.rb
+++ b/lib/tracer.rb
@@ -87,16 +87,16 @@ class Tracer
return p.call line
end
- unless list = LINES__[file]
+ unless list = SCRIPT_LINES__[file]
begin
f = open(file)
begin
- LINES__[file] = list = f.readlines
+ SCRIPT_LINES__[file] = list = f.readlines
ensure
f.close
end
rescue
- LINES__[file] = list = []
+ SCRIPT_LINES__[file] = list = []
end
end
if l = list[line - 1]