mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
Ladybird: Remove redundant use of impl()
This blocks us from removing it upstream in LibWeb.
This commit is contained in:
parent
fdf69720d4
commit
445cc7c97d
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ JS_DEFINE_NATIVE_FUNCTION(ConsoleGlobalObject::inspected_node_getter)
|
||||||
return vm.throw_completion<JS::TypeError>(JS::ErrorType::NotAnObjectOfType, "ConsoleGlobalObject");
|
return vm.throw_completion<JS::TypeError>(JS::ErrorType::NotAnObjectOfType, "ConsoleGlobalObject");
|
||||||
|
|
||||||
auto console_global_object = static_cast<ConsoleGlobalObject*>(this_object);
|
auto console_global_object = static_cast<ConsoleGlobalObject*>(this_object);
|
||||||
auto& window = console_global_object->m_window_object->impl();
|
auto& window = *console_global_object->m_window_object;
|
||||||
auto* inspected_node = window.associated_document().inspected_node();
|
auto* inspected_node = window.associated_document().inspected_node();
|
||||||
if (!inspected_node)
|
if (!inspected_node)
|
||||||
return JS::js_undefined();
|
return JS::js_undefined();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue