Skip to content

Commit

Permalink
Fixed printing tokens - added two missing cases
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabergia committed Oct 4, 2024
1 parent f57fdcb commit b39ac0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rhino/src/main/java/org/mozilla/javascript/Token.java
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ public static String typeToName(int token) {
return "CONST";
case SETCONST:
return "SETCONST";
case SETCONSTVAR:
return "SETCONSTVAR";
case ARRAYCOMP:
return "ARRAYCOMP";
case WITHEXPR:
Expand Down Expand Up @@ -614,6 +616,8 @@ public static String typeToName(int token) {
return "TEMPLATE_LITERAL_SUBST";
case TAGGED_TEMPLATE_LITERAL:
return "TAGGED_TEMPLATE_LITERAL";
case DOTDOTDOT:
return "DOTDOTDOT";
case QUESTION_DOT:
return "DOT_QUESTION";
}
Expand Down

0 comments on commit b39ac0c

Please sign in to comment.