diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-28 16:11:12 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-28 16:11:12 +0000 |
| commit | b5717a7b71fee71e8775f987e764b40026b365c3 (patch) | |
| tree | 2e4c378f2efd8da7e85d9f29dc25684b3b7b09ef /vm.c | |
| parent | 7ed8000cd4973cdac814c09108c198ac36af50ae (diff) | |
merges r24659 from trunk into ruby_1_9_1.
--
* vm.c (collect_local_variables_in_env): skips internal variables.
[ruby-core:25125]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
| -rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -363,7 +363,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)); } } |
