LibJS: Move global symbol map from SymbolObject to Interpreter

This allows different instances of the Interpreter to have their own
global symbols. Also makes Symbol non-copyable and non-moveable.
This commit is contained in:
Matthew Olsson 2020-07-06 16:57:22 -07:00 committed by Andreas Kling
commit d9db6bec42
Notes: sideshowbarker 2024-07-19 04:59:53 +09:00
6 changed files with 48 additions and 115 deletions

View file

@ -32,6 +32,9 @@
namespace JS {
class Symbol final : public Cell {
AK_MAKE_NONCOPYABLE(Symbol)
AK_MAKE_NONMOVABLE(Symbol)
public:
Symbol(String, bool);
virtual ~Symbol();