mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +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
|
@ -97,7 +97,7 @@ static void update_function_name(Value value, DeprecatedFlyString const& name)
|
|||
static ThrowCompletionOr<DeprecatedString> get_function_property_name(PropertyKey key)
|
||||
{
|
||||
if (key.is_symbol())
|
||||
return DeprecatedString::formatted("[{}]", key.as_symbol()->description().value_or(""));
|
||||
return DeprecatedString::formatted("[{}]", key.as_symbol()->description().value_or(String {}));
|
||||
return key.to_string();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue