1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

strip trailing spaces [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2020-10-30 12:26:59 +09:00
parent 5d97bdc2dc
commit 799253dc46
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 2 additions and 2 deletions

View file

@ -1624,7 +1624,7 @@ access_outer_variables(const rb_iseq_t *iseq, int level, ID id, bool write)
if (!ovs) {
ovs = iseq->body->outer_variables = rb_id_table_create(8);
}
if (rb_id_table_lookup(iseq->body->outer_variables, id, &val)) {
if (write && !val) {
rb_id_table_insert(iseq->body->outer_variables, id, Qtrue);

2
iseq.c
View file

@ -607,7 +607,7 @@ prepare_iseq_build(rb_iseq_t *iseq,
ISEQ_COMPILE_DATA(iseq)->option = option;
ISEQ_COMPILE_DATA(iseq)->ivar_cache_table = NULL;
ISEQ_COMPILE_DATA(iseq)->builtin_function_table = GET_VM()->builtin_function_table;
if (option->coverage_enabled) {
VALUE coverages = rb_get_coverages();