diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2020-07-06 16:57:22 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-09 23:29:28 +0200 |
commit | d9db6bec42783ed0b1cacb605575a8e4884dc904 (patch) | |
tree | df5ac869230b9f6ea027115064b6d5e08f0e48a5 /Libraries/LibJS/Runtime/Symbol.h | |
parent | 4d8683b632161f6da702f1df75b1c507a7bef2ad (diff) | |
download | serenity-d9db6bec42783ed0b1cacb605575a8e4884dc904.zip |
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.
Diffstat (limited to 'Libraries/LibJS/Runtime/Symbol.h')
-rw-r--r-- | Libraries/LibJS/Runtime/Symbol.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Libraries/LibJS/Runtime/Symbol.h b/Libraries/LibJS/Runtime/Symbol.h index 3f911e2b4f..22218f7dcc 100644 --- a/Libraries/LibJS/Runtime/Symbol.h +++ b/Libraries/LibJS/Runtime/Symbol.h @@ -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(); |