diff --git a/Userland/Libraries/LibJS/Runtime/Value.h b/Userland/Libraries/LibJS/Runtime/Value.h index 52e7dd2c43..8bd6ecf412 100644 --- a/Userland/Libraries/LibJS/Runtime/Value.h +++ b/Userland/Libraries/LibJS/Runtime/Value.h @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -131,7 +132,8 @@ public: { } - explicit Value(bool value) + template + requires(SameAs, bool>) explicit Value(T value) : m_type(Type::Boolean) { m_value.as_bool = value;