mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
LibJS: Reformat ArrayPrototype.cpp
This commit is contained in:
parent
39b5494aeb
commit
99e775cee3
Notes:
sideshowbarker
2024-07-19 06:04:12 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/99e775cee35 Pull-request: https://github.com/SerenityOS/serenity/pull/2418
1 changed files with 5 additions and 6 deletions
|
@ -706,9 +706,9 @@ Value ArrayPrototype::splice(Interpreter& interpreter)
|
|||
this_object->put(to, from);
|
||||
if (interpreter.exception())
|
||||
return {};
|
||||
}
|
||||
else
|
||||
} else {
|
||||
this_object->delete_property(to);
|
||||
}
|
||||
}
|
||||
|
||||
for (size_t i = initial_length; i > new_length; --i)
|
||||
|
@ -725,9 +725,9 @@ Value ArrayPrototype::splice(Interpreter& interpreter)
|
|||
this_object->put(to, from);
|
||||
if (interpreter.exception())
|
||||
return {};
|
||||
}
|
||||
else
|
||||
} else {
|
||||
this_object->delete_property(to);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -746,7 +746,7 @@ Value ArrayPrototype::splice(Interpreter& interpreter)
|
|||
|
||||
Value ArrayPrototype::fill(Interpreter& interpreter)
|
||||
{
|
||||
auto *this_object = interpreter.this_value().to_object(interpreter);
|
||||
auto* this_object = interpreter.this_value().to_object(interpreter);
|
||||
if (!this_object)
|
||||
return {};
|
||||
|
||||
|
@ -791,4 +791,3 @@ Value ArrayPrototype::fill(Interpreter& interpreter)
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue