From 4c4e75c0de961e5a838f52bb056ddae505722489 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Tue, 1 Aug 2023 11:16:13 -0400 Subject: [PATCH] [ruby/yarp] Add error cases for ustar appearing in infix position https://github.com/ruby/yarp/commit/8736c17359 --- yarp/yarp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yarp/yarp.c b/yarp/yarp.c index ee9aa1b172..fc0bd54d0f 100644 --- a/yarp/yarp.c +++ b/yarp/yarp.c @@ -12463,6 +12463,10 @@ parse_expression_infix(yp_parser_t *parser, yp_node_t *node, yp_binding_power_t return (yp_node_t *) yp_call_node_binary_create(parser, node, &token, argument); } + case YP_TOKEN_USTAR: + case YP_TOKEN_USTAR_STAR: + // The only times this will occur are when we are in an error state, + // but we'll put them in here so that errors can propagate. case YP_TOKEN_BANG_EQUAL: case YP_TOKEN_BANG_TILDE: case YP_TOKEN_EQUAL_EQUAL: