Skip to content

Commit cd756fe

Browse files
committed
m_pstmtCur->pnodeStmt->nop should be accessed using m_pstmtCur->GetNop()
1 parent c7786bf commit cd756fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Parser/Parse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10063,7 +10063,7 @@ ParseNodePtr Parser::ParseStatement()
1006310063
}
1006410064
// #sec-with-statement-static-semantics-early-errors states that the Statement of
1006510065
// a WithStatement throws a Syntax Error if the Statement is a LabelledFunction.
10066-
else if (m_pstmtCur && m_pstmtCur->pnodeStmt && m_pstmtCur->pnodeStmt->nop == knopWith)
10066+
else if (m_pstmtCur && m_pstmtCur->pnodeStmt && m_pstmtCur->GetNop() == knopWith)
1006710067
{
1006810068
Error(ERRStmtOfWithIsLabelledFunc);
1006910069
}

0 commit comments

Comments
 (0)