diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2023-08-01 11:26:09 -0400 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-08-16 17:47:32 -0700 |
| commit | 31960a9627f7810a294b835dfe073cab1106e1de (patch) | |
| tree | 09e68127f10312a76487aa6d46e999b97cba4e32 | |
| parent | eca3b9343757c9d70dff5f4172396c0a6643cbf0 (diff) | |
[ruby/yarp] Handle missing block parameters
https://github.com/ruby/yarp/commit/bc9049418d
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8226
| -rw-r--r-- | yarp/yarp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yarp/yarp.c b/yarp/yarp.c index e8065d1668..83c4cc2ccf 100644 --- a/yarp/yarp.c +++ b/yarp/yarp.c @@ -1014,7 +1014,7 @@ yp_block_parameters_node_closing_set(yp_block_parameters_node_t *node, const yp_ // Append a new block-local variable to a BlockParametersNode node. static void yp_block_parameters_node_append_local(yp_block_parameters_node_t *node, const yp_token_t *local) { - assert(local->type == YP_TOKEN_IDENTIFIER); + assert(local->type == YP_TOKEN_IDENTIFIER || local->type == YP_TOKEN_MISSING); yp_location_list_append(&node->locals, local); if (node->base.location.start == NULL) node->base.location.start = local->start; |
