Skip to content

Commit 2dd8241

Browse files
committed
[MERGE #5848 @wyrichte] m_pstmtCur->pnodeStmt->nop should be accessed using m_pstmtCur->GetNop()
Merge pull request #5848 from wyrichte:build/wyrichte/pstmtCur
2 parents 653db92 + cd756fe commit 2dd8241

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
@@ -10068,7 +10068,7 @@ ParseNodePtr Parser::ParseStatement()
1006810068
}
1006910069
// #sec-with-statement-static-semantics-early-errors states that the Statement of
1007010070
// a WithStatement throws a Syntax Error if the Statement is a LabelledFunction.
10071-
else if (m_pstmtCur && m_pstmtCur->pnodeStmt && m_pstmtCur->pnodeStmt->nop == knopWith)
10071+
else if (m_pstmtCur && m_pstmtCur->pnodeStmt && m_pstmtCur->GetNop() == knopWith)
1007210072
{
1007310073
Error(ERRStmtOfWithIsLabelledFunc);
1007410074
}

0 commit comments

Comments
 (0)