mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 11:00:29 +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
Notes:
sideshowbarker
2024-07-19 07:50:45 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4fe14aab3b9
2 changed files with 4 additions and 9 deletions
|
@ -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();
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue