Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/main/java/org/jruby/parser/ParserSupport.java
Original file line number Diff line number Diff line change
@@ -688,13 +688,11 @@ private Node cond0(Node node) {

ByteList label = new ByteList(new byte[] {'F', 'L', 'I', 'P'}, USASCII_ENCODING);
label.append(Long.toString(node.hashCode()).getBytes());
currentScope.getLocalScope().addVariable(label);
int slot = currentScope.isDefined(label);


return new FlipNode(node.getPosition(),
getFlipConditionNode(((DotNode) node).getBeginNode()),
getFlipConditionNode(((DotNode) node).getEndNode()),
dotNode.isExclusive(), slot);
dotNode.isExclusive(), currentScope.getLocalScope().addVariable(label));
}
case REGEXPNODE:
if (Options.PARSER_WARN_REGEX_CONDITION.load()) {

0 comments on commit 7f70e9f

Please sign in to comment.