Skip to content

Commit 59360ae

Browse files
committed
Token: assert when trying to update invalid object
1 parent 454d935 commit 59360ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/token.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ static const std::unordered_set<std::string> controlFlowKeywords = {
107107

108108
void Token::update_property_info()
109109
{
110+
assert(mImpl);
111+
110112
setFlag(fIsControlFlowKeyword, false);
111113
// TODO: clear fIsLong
112114
isStandardType(false);

0 commit comments

Comments
 (0)