mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-05 18:52:56 +00:00
LibWeb: Remove debug spam in WindowObject
This commit is contained in:
parent
d062d7baa7
commit
a27884e4be
Notes:
sideshowbarker
2024-07-19 08:00:55 +09:00
Author: https://github.com/awesomekling
Commit: a27884e4be
1 changed files with 0 additions and 4 deletions
|
@ -55,13 +55,11 @@ static Window* impl_from(JS::Interpreter& interpreter)
|
||||||
{
|
{
|
||||||
auto* this_object = interpreter.this_value().to_object(interpreter.heap());
|
auto* this_object = interpreter.this_value().to_object(interpreter.heap());
|
||||||
if (!this_object) {
|
if (!this_object) {
|
||||||
dbg() << "this_object is null";
|
|
||||||
ASSERT_NOT_REACHED();
|
ASSERT_NOT_REACHED();
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
if (StringView("WindowObject") != this_object->class_name()) {
|
if (StringView("WindowObject") != this_object->class_name()) {
|
||||||
interpreter.throw_exception<JS::Error>("TypeError", "That's not a WindowObject, bro.");
|
interpreter.throw_exception<JS::Error>("TypeError", "That's not a WindowObject, bro.");
|
||||||
dbg() << "this_object class_name is '" << this_object->class_name() << "'";
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
return &static_cast<WindowObject*>(this_object)->impl();
|
return &static_cast<WindowObject*>(this_object)->impl();
|
||||||
|
@ -69,11 +67,9 @@ static Window* impl_from(JS::Interpreter& interpreter)
|
||||||
|
|
||||||
JS::Value WindowObject::alert(JS::Interpreter& interpreter)
|
JS::Value WindowObject::alert(JS::Interpreter& interpreter)
|
||||||
{
|
{
|
||||||
dbg() << "alert entry";
|
|
||||||
auto* impl = impl_from(interpreter);
|
auto* impl = impl_from(interpreter);
|
||||||
if (!impl)
|
if (!impl)
|
||||||
return {};
|
return {};
|
||||||
dbg() << "alert2 entry";
|
|
||||||
auto& arguments = interpreter.call_frame().arguments;
|
auto& arguments = interpreter.call_frame().arguments;
|
||||||
if (arguments.size() < 1)
|
if (arguments.size() < 1)
|
||||||
return {};
|
return {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue