LibJS: Inline JS::Value()

I had this out of line for debugging reasons. Put it back inline.
This commit is contained in:
Andreas Kling 2020-04-06 20:30:36 +02:00
parent bdffc9e7fb
commit 4fe14aab3b
Notes: sideshowbarker 2024-07-19 07:50:45 +09:00
2 changed files with 4 additions and 9 deletions

View file

@ -39,14 +39,6 @@
namespace JS { namespace JS {
Value::Value()
: m_type(Type::Empty)
{
// dbg() << "Create empty value";
// dump_backtrace();
}
bool Value::is_array() const bool Value::is_array() const
{ {
return is_object() && as_object().is_array(); return is_object() && as_object().is_array();

View file

@ -58,7 +58,10 @@ public:
bool is_nan() const { return is_number() && __builtin_isnan(as_double()); } bool is_nan() const { return is_number() && __builtin_isnan(as_double()); }
bool is_infinity() const { return is_number() && __builtin_isinf(as_double()); } bool is_infinity() const { return is_number() && __builtin_isinf(as_double()); }
Value(); Value()
: m_type(Type::Empty)
{
}
explicit Value(bool value) explicit Value(bool value)
: m_type(Type::Boolean) : m_type(Type::Boolean)