You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d2e56a0
Browse filesBrowse the repository at this point in the historyBrowse files
Binding#local_variable_get and #local_variable_set took a variable's
depth from the static scopes and used it to index the dynamic ones.
The two chains don't line up inside a for loop: the loop body gets its
own dynamic scope in the interpreter, but a block inside it has the
enclosing method's static scope as its parent. So from a block in a
for loop, the depth landed one scope short, on the loop body's empty
scope, and raised "DynamicScope0 only supports scopes with 0
variables".
Walk the dynamic scopes instead and use the first one whose static
scope has the variable, stopping at the method's scope as before.
Fixes#9849
0 commit comments