Skip to content

Commit

Permalink
bindings can change size..just making sure this fixes issues. I likel…
Browse files Browse the repository at this point in the history
…y will rename this from dup
  • Loading branch information
enebo committed May 1, 2024
1 parent d994845 commit 2b9b9d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/org/jruby/runtime/DynamicScope.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.jruby.ir.JIT;
import org.jruby.parser.StaticScope;
import org.jruby.runtime.builtin.IRubyObject;
import org.jruby.runtime.scope.ManyVarsDynamicScope;

public abstract class DynamicScope implements Cloneable {
// Static scoping information for this scope
Expand Down Expand Up @@ -600,6 +601,6 @@ public DynamicScope cloneScope() {
}

public DynamicScope dup() {
return newDynamicScope(staticScope.duplicate(), parent);
return new ManyVarsDynamicScope(staticScope.duplicate(), parent);
}
}

0 comments on commit 2b9b9d9

Please sign in to comment.