Skip to content

Commit f48dc1b

Browse files
Treat eval?.() as indirect eval
1 parent 8c4eddf commit f48dc1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Parser/Parse.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4001,7 +4001,7 @@ ParseNodePtr Parser::ParsePostfixOperators(
40014001
// Note: we used to leave it up to the byte code generator to detect eval calls
40024002
// at global scope, but now it relies on the flag the parser sets, so set it here.
40034003

4004-
if (count > 0 && this->NodeIsEvalName(pnode->AsParseNodeCall()->pnodeTarget))
4004+
if (count > 0 && this->NodeIsEvalName(pnode->AsParseNodeCall()->pnodeTarget) && !isNullPropagating)
40054005
{
40064006
this->MarkEvalCaller();
40074007
fCallIsEval = true;

0 commit comments

Comments
 (0)