diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/Value.h')
-rw-r--r-- | Libraries/LibJS/Runtime/Value.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/Value.h b/Libraries/LibJS/Runtime/Value.h index 5250d108fd..9d348b56f6 100644 --- a/Libraries/LibJS/Runtime/Value.h +++ b/Libraries/LibJS/Runtime/Value.h @@ -79,7 +79,7 @@ public: } Value(Object* object) - : m_type(Type::Object) + : m_type(object ? Type::Object : Type::Null) { m_value.as_object = object; } |