mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
LibJS: Allow default-constructing a JS::Value (undefined)
This commit is contained in:
parent
a82f64d3d6
commit
86642add2f
1 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,11 @@ public:
|
||||||
bool is_boolean() const { return m_type == Type::Boolean; }
|
bool is_boolean() const { return m_type == Type::Boolean; }
|
||||||
bool is_cell() const { return is_string() || is_object(); }
|
bool is_cell() const { return is_string() || is_object(); }
|
||||||
|
|
||||||
|
Value()
|
||||||
|
: m_type(Type::Undefined)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
explicit Value(bool value)
|
explicit Value(bool value)
|
||||||
: m_type(Type::Boolean)
|
: m_type(Type::Boolean)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue