* eval.c (eval): forgot to restore $SAFE value before evaluating
compiled node. [ruby-core:02872] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6a60393280
commit
094290e68f
@ -1,3 +1,8 @@
|
|||||||
|
Sat May 15 01:41:34 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* eval.c (eval): forgot to restore $SAFE value before evaluating
|
||||||
|
compiled node. [ruby-core:02872]
|
||||||
|
|
||||||
Sat May 15 01:33:12 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Sat May 15 01:33:12 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* range.c (range_each_func): terminates loop if generating value
|
* range.c (range_each_func): terminates loop if generating value
|
||||||
|
1
eval.c
1
eval.c
@ -6052,6 +6052,7 @@ eval(self, src, scope, file, line)
|
|||||||
result = ruby_errinfo;
|
result = ruby_errinfo;
|
||||||
ruby_errinfo = Qnil;
|
ruby_errinfo = Qnil;
|
||||||
node = compile(src, file, line);
|
node = compile(src, file, line);
|
||||||
|
ruby_safe_level = safe;
|
||||||
if (ruby_nerrs > 0) {
|
if (ruby_nerrs > 0) {
|
||||||
compile_error(0);
|
compile_error(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user