diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-29 09:01:12 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-29 09:01:12 +0000 |
commit | 979ba5fc702823b954f5f3aa12702821d7a6481e (patch) | |
tree | 7a8a857fd9579fc00c5d716207ae92e4fc4c717c /vm_eval.c | |
parent | 6d8ed07d66eb14fc3f35174420b385fb086a7ea0 (diff) |
merge revision(s) 52536: [Backport #11674]
* vm_eval.c (local_var_list_add): skip internal local variable
name by its type but not if it has a name. internal local
variable names are just unique per frame, not globally.
[ruby-core:71437] [Bug #11674]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2037,7 +2037,7 @@ local_var_list_update(st_data_t *key, st_data_t *value, st_data_t arg, int exist static void local_var_list_add(const struct local_var_list *vars, ID lid) { - if (lid && rb_id2str(lid)) { + if (lid && rb_is_local_id(lid)) { /* should skip temporary variable */ st_table *tbl = RHASH_TBL_RAW(vars->tbl); st_data_t idx = 0; /* tbl->num_entries */ |