Skip to content

Commit 8a1e8ee

Browse files
committed
fix: resolve function argument parsing issue causing Argon crashes in specific contexts
1 parent 1156862 commit 8a1e8ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

argon/lang/parser2/parser2.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -2144,6 +2144,8 @@ Node *Parser::ParseFuncCall(Context *context, Node *left) {
21442144
}
21452145

21462146
arg = (ArObject *) this->ParseExpression(context, PeekPrecedence(TokenType::COMMA));
2147+
if (!arg)
2148+
throw ParserException(this->tkcur_.loc, kStandardError[0]);
21472149

21482150
if (this->ParseFuncCallSpread(args, (Node *) arg.Get(), mode == 1))
21492151
mode = 1;

0 commit comments

Comments
 (0)