mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 21:12:26 +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:
parent
1b391d78ae
commit
e72a537033
Notes:
sideshowbarker
2024-07-19 07:33:04 +09:00
Author: https://github.com/awesomekling
Commit: e72a537033
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue