зеркало из https://github.com/github/ruby.git
[ruby/prism] Inherit ractor state for child scopes
https://github.com/ruby/prism/commit/4576cb1d96
This commit is contained in:
Родитель
d08e55141e
Коммит
575fe63e20
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче