From 4fe14aab3b9a9cd190d299bdfc77a79eb8938fae Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 6 Apr 2020 20:30:36 +0200 Subject: LibJS: Inline JS::Value() I had this out of line for debugging reasons. Put it back inline. --- Libraries/LibJS/Runtime/Value.cpp | 8 -------- Libraries/LibJS/Runtime/Value.h | 5 ++++- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'Libraries') 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) -- cgit v1.2.3