Skip to content

Fix dynscopes#7888

Merged
enebo merged 6 commits intomasterfrom
fix_dynscopes
Aug 16, 2023
Merged

Fix dynscopes#7888
enebo merged 6 commits intomasterfrom
fix_dynscopes

Conversation

@enebo
Copy link
Member

@enebo enebo commented Aug 15, 2023

Top-level scopes for ordinary parses will no right-size dynscope vs always using manyvarsdynamicscope. This work also made me realize first time simple non-binding evals can do this as well (first time binding also but it is more complicated).

enebo added 2 commits August 15, 2023 16:36
This is an ancient problem and I am taking another stab.
The PR will not make the dynamic scope until after the parse
has finished.  This allows us to call and get proper arity
dyn scope.  Secondly, for evals the outer scope can grow and
that logic only happens during finalization of parsing and also
will get new proper arity in that case.
@enebo enebo added this to the JRuby 9.4.4.0 milestone Aug 15, 2023
@enebo enebo requested a review from headius August 15, 2023 22:47
enebo added 4 commits August 16, 2023 09:13
This reverts commit fd53a05.

Beyond creating a single extra warn in a single test in JRuby I
realized I need to specify evalParse so that I can create dynamic
scope as part of parsing on simple evals (bindings is more
difficult but also probably possible).
@enebo enebo merged commit 44940a9 into master Aug 16, 2023
@headius headius deleted the fix_dynscopes branch August 22, 2023 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant