mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
LibJS: Create Console using a Realm instead of a VM
This commit is contained in:
parent
7a2da4cabf
commit
69dd158f91
3 changed files with 22 additions and 20 deletions
|
@ -53,11 +53,11 @@ public:
|
|||
Vector<String> stack;
|
||||
};
|
||||
|
||||
explicit Console(VM&);
|
||||
explicit Console(Realm&);
|
||||
|
||||
void set_client(ConsoleClient& client) { m_client = &client; }
|
||||
|
||||
VM& vm() const { return m_vm; }
|
||||
Realm& realm() const { return m_realm; }
|
||||
|
||||
MarkedVector<Value> vm_arguments();
|
||||
|
||||
|
@ -87,7 +87,7 @@ private:
|
|||
ThrowCompletionOr<String> value_vector_to_string(MarkedVector<Value> const&);
|
||||
ThrowCompletionOr<String> format_time_since(Core::ElapsedTimer timer);
|
||||
|
||||
VM& m_vm;
|
||||
Realm& m_realm;
|
||||
ConsoleClient* m_client { nullptr };
|
||||
|
||||
HashMap<String, unsigned> m_counters;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue