scripting engine: allow unused result from T_OP_FIND_AND_DEL_STR

This commit is contained in:
nakst 2022-02-10 22:17:44 +00:00
parent 65e5ce527a
commit fade38e5c8
1 changed files with 2 additions and 1 deletions

View File

@ -3110,7 +3110,8 @@ bool FunctionBuilderRecurse(Tokenizer *tokenizer, Node *node, FunctionBuilder *b
if (node->type == T_BLOCK && child->expressionType && child->expressionType->type != T_VOID) {
if (child->type == T_CALL || child->type == T_AWAIT
|| (child->type == T_COLON && child->operationType == T_OP_FIND_AND_DELETE)) {
|| (child->type == T_COLON && child->operationType == T_OP_FIND_AND_DELETE)
|| (child->type == T_COLON && child->operationType == T_OP_FIND_AND_DEL_STR)) {
uint8_t b = T_POP;
FunctionBuilderAppend(builder, &b, sizeof(b));
} else if (child->type == T_DECLARE || child->type == T_EQUALS) {