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:
Linus Groh 2023-02-11 16:14:41 +00:00
commit a8bf2f8e4c
Notes: sideshowbarker 2024-07-17 11:30:05 +09:00
11 changed files with 27 additions and 27 deletions

View file

@ -372,7 +372,7 @@ DeprecatedString Value::to_string_without_side_effects() const
case STRING_TAG:
return MUST(as_string().deprecated_string());
case SYMBOL_TAG:
return as_symbol().descriptive_string();
return as_symbol().descriptive_string().release_value_but_fixme_should_propagate_errors().to_deprecated_string();
case BIGINT_TAG:
return as_bigint().to_deprecated_string();
case OBJECT_TAG: