From eca3b9343757c9d70dff5f4172396c0a6643cbf0 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Tue, 1 Aug 2023 11:21:25 -0400 Subject: [PATCH] [ruby/yarp] **nil can be a STAR_STAR token https://github.com/ruby/yarp/commit/33b06f252c --- yarp/yarp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarp/yarp.c b/yarp/yarp.c index 2d719a62d6..e8065d1668 100644 --- a/yarp/yarp.c +++ b/yarp/yarp.c @@ -3023,7 +3023,7 @@ yp_nil_node_create(yp_parser_t *parser, const yp_token_t *token) { // Allocate and initialize a new NoKeywordsParameterNode node. static yp_no_keywords_parameter_node_t * yp_no_keywords_parameter_node_create(yp_parser_t *parser, const yp_token_t *operator, const yp_token_t *keyword) { - assert(operator->type == YP_TOKEN_USTAR_STAR); + assert(operator->type == YP_TOKEN_USTAR_STAR || operator->type == YP_TOKEN_STAR_STAR); assert(keyword->type == YP_TOKEN_KEYWORD_NIL); yp_no_keywords_parameter_node_t *node = YP_ALLOC_NODE(parser, yp_no_keywords_parameter_node_t);