mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
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:
parent
4d8683b632
commit
d9db6bec42
Notes:
sideshowbarker
2024-07-19 04:59:53 +09:00
Author: https://github.com/mattco98
Commit: d9db6bec42
Pull-request: https://github.com/SerenityOS/serenity/pull/2723
Issue: https://github.com/SerenityOS/serenity/issues/2709
Reviewed-by: https://github.com/awesomekling
6 changed files with 48 additions and 115 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue