[ruby/prism] Inherit ractor state for child scopes

https://github.com/ruby/prism/commit/4576cb1d96
This commit is contained in:
Kevin Newton 2024-07-24 12:13:22 -04:00 коммит произвёл git
Родитель d08e55141e
Коммит 575fe63e20
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -579,7 +579,7 @@ pm_parser_scope_push(pm_parser_t *parser, bool closed) {
.locals = { 0 },
.parameters = PM_SCOPE_PARAMETERS_NONE,
.implicit_parameters = { 0 },
.shareable_constant = (closed || parser->current_scope == NULL) ? PM_SCOPE_SHAREABLE_CONSTANT_NONE : parser->current_scope->shareable_constant,
.shareable_constant = parser->current_scope == NULL ? PM_SCOPE_SHAREABLE_CONSTANT_NONE : parser->current_scope->shareable_constant,
.closed = closed
};