Skip to content

Commit bc57caf

Browse files
committed
Use exists() so it can compile against 10.0.5.0. Vars are not marked implicit so exists() works fine
1 parent 82477fe commit bc57caf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/jruby/prism/builder/IRBuilderPrism.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,13 +494,13 @@ private void markImplicitVariables(StaticScope staticScope, Node parameters) {
494494

495495
private void markImplcitNums(StaticScope staticScope, int maximum) {
496496
for (int i = 0; i < maximum; i++) {
497-
int slot = staticScope.existsOrImplicit("_" + (i + 1));
497+
int slot = staticScope.exists("_" + (i + 1));
498498
staticScope.markImplicitVariable(slot & 0xffff);
499499
}
500500
}
501501

502502
private void markIt(StaticScope staticScope) {
503-
int slot = staticScope.existsOrImplicit("it");
503+
int slot = staticScope.exists("it");
504504
staticScope.markImplicitVariable(slot & 0xffff);
505505
}
506506

0 commit comments

Comments
 (0)