mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
LibJS: Port Symbol to String
This includes the VM's global_symbol_registry HashMap, which can now store String keys.
This commit is contained in:
parent
5e72fde954
commit
a8bf2f8e4c
11 changed files with 27 additions and 27 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()->descriptive_string());
|
||||
builder.appendff("{}", m_name.as_symbol()->descriptive_string().release_value_but_fixme_should_propagate_errors());
|
||||
else
|
||||
builder.appendff("{}", m_name.to_string());
|
||||
builder.appendff(", Strict={}", m_strict);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue