Skip to content

Commit 23bd673

Browse files
committed
Token: assert when trying to update invalid object
1 parent c3de7cf commit 23bd673

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/token.cpp

+2
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)