mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +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:
parent
88a3267e46
commit
47645fc976
1 changed files with 1 additions and 0 deletions
|
@ -563,6 +563,7 @@ public:
|
||||||
: Expression(move(source_range))
|
: Expression(move(source_range))
|
||||||
, m_expressions(move(expressions))
|
, m_expressions(move(expressions))
|
||||||
{
|
{
|
||||||
|
VERIFY(m_expressions.size() >= 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void dump(int indent) const override;
|
virtual void dump(int indent) const override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue