diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-10 15:48:35 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-10 15:48:35 +0000 |
commit | eb1f89015e9c8de8e4f084aadb0f0811fd54371d (patch) | |
tree | 703561f868a6cbf55771da60328702e811dbd844 /vm.c | |
parent | 8149168db64344e483a2b8febb72895494284e24 (diff) | |
download | ruby-eb1f89015e9c8de8e4f084aadb0f0811fd54371d.tar.gz |
* eval.c (rb_f_local_variables): local_variables should return an
array of symbols. [ruby-dev:34008]
* vm.c (collect_local_variables_in_env): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -285,7 +285,7 @@ collect_local_variables_in_env(rb_env_t *env, VALUE ary) for (i = 0; i < env->block.iseq->local_table_size; i++) { ID lid = env->block.iseq->local_table[i]; if (lid) { - rb_ary_push(ary, rb_str_dup(rb_id2str(lid))); + rb_ary_push(ary, ID2SYM(lid)); } } if (env->prev_envval) { |