summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Value.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Value.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Value.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Value.h b/Userland/Libraries/LibJS/Runtime/Value.h
index 364c410c2e..0b1f1aac59 100644
--- a/Userland/Libraries/LibJS/Runtime/Value.h
+++ b/Userland/Libraries/LibJS/Runtime/Value.h
@@ -178,31 +178,31 @@ public:
m_value.as_i32 = value;
}
- Value(const Object* object)
+ Value(Object const* object)
: m_type(object ? Type::Object : Type::Null)
{
m_value.as_object = const_cast<Object*>(object);
}
- Value(const PrimitiveString* string)
+ Value(PrimitiveString const* string)
: m_type(Type::String)
{
m_value.as_string = const_cast<PrimitiveString*>(string);
}
- Value(const Symbol* symbol)
+ Value(Symbol const* symbol)
: m_type(Type::Symbol)
{
m_value.as_symbol = const_cast<Symbol*>(symbol);
}
- Value(const Accessor* accessor)
+ Value(Accessor const* accessor)
: m_type(Type::Accessor)
{
m_value.as_accessor = const_cast<Accessor*>(accessor);
}
- Value(const BigInt* bigint)
+ Value(BigInt const* bigint)
: m_type(Type::BigInt)
{
m_value.as_bigint = const_cast<BigInt*>(bigint);
@@ -235,7 +235,7 @@ public:
return *m_value.as_object;
}
- const Object& as_object() const
+ Object const& as_object() const
{
VERIFY(type() == Type::Object);
return *m_value.as_object;
@@ -247,7 +247,7 @@ public:
return *m_value.as_string;
}
- const PrimitiveString& as_string() const
+ PrimitiveString const& as_string() const
{
VERIFY(is_string());
return *m_value.as_string;
@@ -259,7 +259,7 @@ public:
return *m_value.as_symbol;
}
- const Symbol& as_symbol() const
+ Symbol const& as_symbol() const
{
VERIFY(is_symbol());
return *m_value.as_symbol;