mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
Revert "WebContent: Use ConsoleGlobalObject for the console's global object :^)"
This reverts commit 8296dd9955
.
This commit is contained in:
parent
1a38ab0ca1
commit
217993b1d1
2 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,7 @@ WebContentConsoleClient::WebContentConsoleClient(JS::Console& console, WeakPtr<J
|
||||||
console_global_object->initialize_global_object();
|
console_global_object->initialize_global_object();
|
||||||
vm.pop_execution_context();
|
vm.pop_execution_context();
|
||||||
|
|
||||||
m_interpreter->realm().set_global_object(*console_global_object);
|
m_console_global_object = JS::make_handle(console_global_object);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebContentConsoleClient::handle_input(String const& js_source)
|
void WebContentConsoleClient::handle_input(String const& js_source)
|
||||||
|
|
|
@ -29,6 +29,7 @@ private:
|
||||||
|
|
||||||
ConnectionFromClient& m_client;
|
ConnectionFromClient& m_client;
|
||||||
WeakPtr<JS::Interpreter> m_interpreter;
|
WeakPtr<JS::Interpreter> m_interpreter;
|
||||||
|
JS::Handle<ConsoleGlobalObject> m_console_global_object;
|
||||||
|
|
||||||
void clear_output();
|
void clear_output();
|
||||||
void print_html(String const& line);
|
void print_html(String const& line);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue