diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-26 03:37:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-26 03:37:08 +0000 |
commit | b6cf78511962ba901ca4a86ffdeb6624afe8dfb1 (patch) | |
tree | 071d70ddc6aa9d9f0911118f5f2eccd9155f8a92 /vm.c | |
parent | 1af43ae867807010d1fc37b440cbc79215de34b9 (diff) | |
download | ruby-b6cf78511962ba901ca4a86ffdeb6624afe8dfb1.tar.gz |
* vm.c (collect_local_variables_in_env): skips internal variables.
[ruby-core:25125]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -382,7 +382,7 @@ collect_local_variables_in_env(rb_env_t * const env, const VALUE ary) int i; for (i = 0; i < env->block.iseq->local_table_size; i++) { ID lid = env->block.iseq->local_table[i]; - if (lid) { + if (rb_is_local_id(lid)) { rb_ary_push(ary, ID2SYM(lid)); } } |