Skip to content

Commit

Permalink
Fixes #5209. NoMethodError: undefined method `on_kwrest_param'.
Browse files Browse the repository at this point in the history
Missing parser event entry for kwrest_param.
  • Loading branch information
enebo committed Jun 11, 2018
1 parent 26bee8c commit 8903315
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/ext/ripper/RubyRipper.java
Expand Up @@ -188,6 +188,7 @@ private static IRubyObject createParserEventTable(Ruby runtime, RubyClass ripper
hash.fastASet(runtime.newSymbol("if"), runtime.newFixnum(3));
hash.fastASet(runtime.newSymbol("if_mod"), runtime.newFixnum(2));
hash.fastASet(runtime.newSymbol("ifop"), runtime.newFixnum(3));
hash.fastASet(runtime.newSymbol("kwrest_param"), runtime.newFixnum(1));
hash.fastASet(runtime.newSymbol("lambda"), runtime.newFixnum(2));
hash.fastASet(runtime.newSymbol("magic_comment"), runtime.newFixnum(2));
hash.fastASet(runtime.newSymbol("massign"), runtime.newFixnum(2));
Expand Down

0 comments on commit 8903315

Please sign in to comment.