diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-11-14 22:10:08 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-11-15 17:52:40 +0900 |
commit | ad72d96fcc8c164c6a9e11d138f01b02661b9ab2 (patch) | |
tree | bba11f021091dc110dee9a1f9cf8afa8beae26c9 /iseq.c | |
parent | 7998dcdedc7f1d3cfaabfc3f68ca7635f0e5e1d1 (diff) |
Escape and quote non-local variable names
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2071,7 +2071,7 @@ local_var_name(const rb_iseq_t *diseq, VALUE level, VALUE op) if (!name) { name = rb_str_new_cstr("?"); } - else if (!rb_str_symname_p(name)) { + else if (!rb_is_local_id(lid)) { name = rb_str_inspect(name); } else { |