summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/Symbol.h
diff options
context:
space:
mode:
authorMatthew Olsson <matthewcolsson@gmail.com>2020-07-06 16:57:22 -0700
committerAndreas Kling <kling@serenityos.org>2020-07-09 23:29:28 +0200
commitd9db6bec42783ed0b1cacb605575a8e4884dc904 (patch)
treedf5ac869230b9f6ea027115064b6d5e08f0e48a5 /Libraries/LibJS/Runtime/Symbol.h
parent4d8683b632161f6da702f1df75b1c507a7bef2ad (diff)
downloadserenity-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.h3
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();