mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:17:35 +00:00
LibJS: Move creation of global symbols into Symbol.for()
This is now according to the spec. Having a non-standard lookup API that creates symbols on the fly doesn't seem ideal.
This commit is contained in:
parent
b821356ba6
commit
f490ba13ff
3 changed files with 25 additions and 16 deletions
|
@ -73,9 +73,10 @@ public:
|
|||
JS_ENUMERATE_WELL_KNOWN_SYMBOLS
|
||||
#undef __JS_ENUMERATE
|
||||
|
||||
Symbol* get_global_symbol(DeprecatedString const& description);
|
||||
|
||||
HashMap<DeprecatedString, PrimitiveString*>& string_cache() { return m_string_cache; }
|
||||
HashMap<DeprecatedString, PrimitiveString*>& string_cache()
|
||||
{
|
||||
return m_string_cache;
|
||||
}
|
||||
PrimitiveString& empty_string() { return *m_empty_string; }
|
||||
PrimitiveString& single_ascii_character_string(u8 character)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue