1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +00:00

LibJS: Make Value::m_type default to Type::Empty

This is not effectful since all constructors overwrite the type anyway,
but it seems reasonable that the default value of m_type would match
what Value() would give you.
This commit is contained in:
Andreas Kling 2020-04-16 16:11:11 +02:00
parent 1b391d78ae
commit e72a537033

View file

@ -152,7 +152,7 @@ public:
Object* to_object(Heap&) const;
private:
Type m_type { Type::Undefined };
Type m_type { Type::Empty };
union {
bool as_bool;