mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 13:57:35 +00:00
LibJS: Inline JS::Value()
I had this out of line for debugging reasons. Put it back inline.
This commit is contained in:
parent
bdffc9e7fb
commit
4fe14aab3b
2 changed files with 4 additions and 9 deletions
|
@ -39,14 +39,6 @@
|
|||
|
||||
namespace JS {
|
||||
|
||||
Value::Value()
|
||||
: m_type(Type::Empty)
|
||||
{
|
||||
// dbg() << "Create empty value";
|
||||
// dump_backtrace();
|
||||
}
|
||||
|
||||
|
||||
bool Value::is_array() const
|
||||
{
|
||||
return is_object() && as_object().is_array();
|
||||
|
|
|
@ -58,7 +58,10 @@ public:
|
|||
bool is_nan() const { return is_number() && __builtin_isnan(as_double()); }
|
||||
bool is_infinity() const { return is_number() && __builtin_isinf(as_double()); }
|
||||
|
||||
Value();
|
||||
Value()
|
||||
: m_type(Type::Empty)
|
||||
{
|
||||
}
|
||||
|
||||
explicit Value(bool value)
|
||||
: m_type(Type::Boolean)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue