mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
LibJS: Rename Symbol::to_deprecated_string() to descriptive_string()
This implements the spec's SymbolDescriptiveString AO and should be named accordingly.
This commit is contained in:
parent
ac440e6c0e
commit
89700a2101
7 changed files with 22 additions and 9 deletions
|
@ -216,7 +216,7 @@ DeprecatedString Reference::to_deprecated_string() const
|
|||
if (!m_name.is_valid())
|
||||
builder.append("<invalid>"sv);
|
||||
else if (m_name.is_symbol())
|
||||
builder.appendff("{}", m_name.as_symbol()->to_deprecated_string());
|
||||
builder.appendff("{}", m_name.as_symbol()->descriptive_string());
|
||||
else
|
||||
builder.appendff("{}", m_name.to_string());
|
||||
builder.appendff(", Strict={}", m_strict);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue