Skip to content

Commit 2eafcdb

Browse files
committedDec 6, 2017
Fix one regression (caused massive duplication in reported elements -- which
seemed to just break yard but not mri tests) from last fix. Still one more regression to go.
1 parent 0ecc2c3 commit 2eafcdb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎core/src/main/java/org/jruby/ext/ripper/RipperParser.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -3779,6 +3779,7 @@ public Object yyparse (RipperLexer yyLex) throws java.io.IOException {
37793779
};
37803780
states[447] = new RipperParserState() {
37813781
@Override public Object execute(RipperParser p, Object yyVal, Object[] yyVals, int yyTop) {
3782+
yyVal = null;
37823783
return yyVal;
37833784
}
37843785
};
@@ -4798,6 +4799,6 @@ public Object yyparse (RipperLexer yyLex) throws java.io.IOException {
47984799
}
47994800
};
48004801
}
4801-
// line 2154 "RipperParser.y"
4802+
// line 2155 "RipperParser.y"
48024803
}
4803-
// line 9485 "-"
4804+
// line 9486 "-"

‎core/src/main/java/org/jruby/ext/ripper/RipperParser.y

+1
Original file line numberDiff line numberDiff line change
@@ -1501,6 +1501,7 @@ opt_rescue : kRESCUE exc_list exc_var then compstmt opt_rescue {
15011501
$$ = p.dispatch("on_rescue", $2, $3, $5, $6);
15021502
}
15031503
| {
1504+
$$ = null;
15041505
}
15051506

15061507
exc_list : arg_value {

0 commit comments

Comments
 (0)
Please sign in to comment.