LibJS: Change PropertyName::as_number() return type to u32

This is how it's stored internally - even though we still only construct
from i32. I had the compiler yell at me while trying something with this
and didn't want to add yet another cast, so let's quickly fix this.
This commit is contained in:
Linus Groh 2021-04-25 22:42:48 +02:00
parent c61de8e4be
commit aef502e8e0
Notes: sideshowbarker 2024-07-18 19:05:22 +09:00

View file

@ -86,7 +86,7 @@ public:
bool is_string() const { return m_type == Type::String; } bool is_string() const { return m_type == Type::String; }
bool is_symbol() const { return m_type == Type::Symbol; } bool is_symbol() const { return m_type == Type::Symbol; }
i32 as_number() const u32 as_number() const
{ {
VERIFY(is_number()); VERIFY(is_number());
return m_number; return m_number;