Skip to content

Commit 8903315

Browse files
committedJun 11, 2018
Fixes #5209. NoMethodError: undefined method `on_kwrest_param'.
Missing parser event entry for kwrest_param.
1 parent 26bee8c commit 8903315

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

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

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ private static IRubyObject createParserEventTable(Ruby runtime, RubyClass ripper
188188
hash.fastASet(runtime.newSymbol("if"), runtime.newFixnum(3));
189189
hash.fastASet(runtime.newSymbol("if_mod"), runtime.newFixnum(2));
190190
hash.fastASet(runtime.newSymbol("ifop"), runtime.newFixnum(3));
191+
hash.fastASet(runtime.newSymbol("kwrest_param"), runtime.newFixnum(1));
191192
hash.fastASet(runtime.newSymbol("lambda"), runtime.newFixnum(2));
192193
hash.fastASet(runtime.newSymbol("magic_comment"), runtime.newFixnum(2));
193194
hash.fastASet(runtime.newSymbol("massign"), runtime.newFixnum(2));

0 commit comments

Comments
 (0)
Please sign in to comment.