mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:17:35 +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());
|
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:
|
private:
|
||||||
Type m_type { Type::Invalid };
|
Type m_type { Type::Invalid };
|
||||||
bool m_string_may_be_number { true };
|
bool m_string_may_be_number { true };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue