[ruby/prism] Inherit ractor state for child scopes
https://github.com/ruby/prism/commit/4576cb1d96
This commit is contained in:
parent
d08e55141e
commit
575fe63e20
@ -579,7 +579,7 @@ pm_parser_scope_push(pm_parser_t *parser, bool closed) {
|
|||||||
.locals = { 0 },
|
.locals = { 0 },
|
||||||
.parameters = PM_SCOPE_PARAMETERS_NONE,
|
.parameters = PM_SCOPE_PARAMETERS_NONE,
|
||||||
.implicit_parameters = { 0 },
|
.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
|
.closed = closed
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user