1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27:35 +00:00

LibJS: Ensure SequenceExpression has two or more expressions

Just a sanity check, as we should be able to make this assumption
elsewhere - this way we can catch silly mistakes early.
This commit is contained in:
Linus Groh 2021-03-16 22:03:31 +01:00 committed by Andreas Kling
parent 88a3267e46
commit 47645fc976

View file

@ -563,6 +563,7 @@ public:
: Expression(move(source_range))
, m_expressions(move(expressions))
{
VERIFY(m_expressions.size() >= 2);
}
virtual void dump(int indent) const override;