mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||
|
||||
* 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;
|
||||
ruby_errinfo = Qnil;
|
||||
node = compile(src, file, line);
|
||||
ruby_safe_level = safe;
|
||||
if (ruby_nerrs > 0) {
|
||||
compile_error(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue