mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
LibJS: Remove PropertyName::to_value since it is not used anymore :^)
This commit is contained in:
parent
ce59e49e27
commit
f998cc156f
1 changed files with 0 additions and 11 deletions
|
@ -176,17 +176,6 @@ public:
|
|||
return StringOrSymbol(as_symbol());
|
||||
}
|
||||
|
||||
Value to_value(VM& vm) const
|
||||
{
|
||||
if (is_string())
|
||||
return js_string(vm, m_string);
|
||||
if (is_number())
|
||||
return Value(m_number);
|
||||
if (is_symbol())
|
||||
return m_symbol;
|
||||
return js_undefined();
|
||||
}
|
||||
|
||||
private:
|
||||
Type m_type { Type::Invalid };
|
||||
bool m_string_may_be_number { true };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue