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
commit e72a537033
Notes: sideshowbarker 2024-07-19 07:33:04 +09:00

View file

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