mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
LibJS: Allow default-constructing a JS::Value (undefined)
This commit is contained in:
parent
a82f64d3d6
commit
86642add2f
Notes:
sideshowbarker
2024-07-19 08:12:44 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/86642add2fa
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_cell() const { return is_string() || is_object(); }
|
||||
|
||||
Value()
|
||||
: m_type(Type::Undefined)
|
||||
{
|
||||
}
|
||||
|
||||
explicit Value(bool value)
|
||||
: m_type(Type::Boolean)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue