mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
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:
parent
c61de8e4be
commit
aef502e8e0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue