mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
WebContent: Use ConsoleGlobalObject for the console's global object :^)
Seems like this got missed when ESOs were implemented. Now we can use `$0` again!
This commit is contained in:
parent
0a83c03546
commit
8296dd9955
Notes:
sideshowbarker
2024-07-17 14:24:59 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/8296dd9955 Pull-request: https://github.com/SerenityOS/serenity/pull/13523
2 changed files with 1 additions and 2 deletions
|
@ -35,7 +35,7 @@ WebContentConsoleClient::WebContentConsoleClient(JS::Console& console, WeakPtr<J
|
|||
console_global_object->initialize_global_object();
|
||||
vm.pop_execution_context();
|
||||
|
||||
m_console_global_object = JS::make_handle(console_global_object);
|
||||
m_interpreter->realm().set_global_object(*console_global_object);
|
||||
}
|
||||
|
||||
void WebContentConsoleClient::handle_input(String const& js_source)
|
||||
|
|
|
@ -29,7 +29,6 @@ private:
|
|||
|
||||
ConnectionFromClient& m_client;
|
||||
WeakPtr<JS::Interpreter> m_interpreter;
|
||||
JS::Handle<ConsoleGlobalObject> m_console_global_object;
|
||||
|
||||
void clear_output();
|
||||
void print_html(String const& line);
|
||||
|
|
Loading…
Reference in a new issue