mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
LibJS: Store NonnullGCPtr<Symbol> values in m_global_symbol_registry
This commit is contained in:
parent
2c579ed0df
commit
d5457375e6
2 changed files with 3 additions and 3 deletions
|
@ -237,8 +237,8 @@ Symbol* VM::get_global_symbol(DeprecatedString const& description)
|
||||||
if (result.has_value())
|
if (result.has_value())
|
||||||
return result.value();
|
return result.value();
|
||||||
|
|
||||||
auto new_global_symbol = js_symbol(*this, description, true);
|
auto* new_global_symbol = js_symbol(*this, description, true);
|
||||||
m_global_symbol_registry.set(description, new_global_symbol);
|
m_global_symbol_registry.set(description, *new_global_symbol);
|
||||||
return new_global_symbol;
|
return new_global_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -265,7 +265,7 @@ private:
|
||||||
StackInfo m_stack_info;
|
StackInfo m_stack_info;
|
||||||
|
|
||||||
// GlobalSymbolRegistry, https://tc39.es/ecma262/#table-globalsymbolregistry-record-fields
|
// GlobalSymbolRegistry, https://tc39.es/ecma262/#table-globalsymbolregistry-record-fields
|
||||||
HashMap<DeprecatedString, Symbol*> m_global_symbol_registry;
|
HashMap<DeprecatedString, NonnullGCPtr<Symbol>> m_global_symbol_registry;
|
||||||
|
|
||||||
Vector<Function<ThrowCompletionOr<Value>()>> m_promise_jobs;
|
Vector<Function<ThrowCompletionOr<Value>()>> m_promise_jobs;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue