diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-06 20:30:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-06 20:30:36 +0200 |
commit | 4fe14aab3b9a9cd190d299bdfc77a79eb8938fae (patch) | |
tree | 77da3d87caf635c5eef4c78ca8aabe0dcc2e757b /Libraries | |
parent | bdffc9e7fb7b721710d3ef38cc457a5e66f3542a (diff) | |
download | serenity-4fe14aab3b9a9cd190d299bdfc77a79eb8938fae.zip |
LibJS: Inline JS::Value()
I had this out of line for debugging reasons. Put it back inline.
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibJS/Runtime/Value.cpp | 8 | ||||
-rw-r--r-- | Libraries/LibJS/Runtime/Value.h | 5 |
2 files changed, 4 insertions, 9 deletions
diff --git a/Libraries/LibJS/Runtime/Value.cpp b/Libraries/LibJS/Runtime/Value.cpp index cf85045799..77d2fcc4f9 100644 --- a/Libraries/LibJS/Runtime/Value.cpp +++ b/Libraries/LibJS/Runtime/Value.cpp @@ -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(); diff --git a/Libraries/LibJS/Runtime/Value.h b/Libraries/LibJS/Runtime/Value.h index f6240c316f..dfdcaa8382 100644 --- a/Libraries/LibJS/Runtime/Value.h +++ b/Libraries/LibJS/Runtime/Value.h @@ -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) |