1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:37:34 +00:00

LibJS: Allow default-constructing a JS::Value (undefined)

This commit is contained in:
Andreas Kling 2020-03-20 20:49:48 +01:00
parent a82f64d3d6
commit 86642add2f

View file

@ -52,6 +52,11 @@ public:
bool is_boolean() const { return m_type == Type::Boolean; }
bool is_cell() const { return is_string() || is_object(); }
Value()
: m_type(Type::Undefined)
{
}
explicit Value(bool value)
: m_type(Type::Boolean)
{