mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibJS: Convert internal_prevent_extensions() to ThrowCompletionOr
This commit is contained in:
parent
9b4362f10a
commit
73bae7d779
Notes:
sideshowbarker
2024-07-18 03:19:26 +09:00
Author: https://github.com/linusg
Commit: 73bae7d779
Pull-request: https://github.com/SerenityOS/serenity/pull/10266
Reviewed-by: https://github.com/IdanHo ✅
12 changed files with 22 additions and 30 deletions
|
@ -140,7 +140,7 @@ JS::ThrowCompletionOr<bool> LocationObject::internal_is_extensible() const
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/history.html#location-preventextensions
|
||||
bool LocationObject::internal_prevent_extensions()
|
||||
JS::ThrowCompletionOr<bool> LocationObject::internal_prevent_extensions()
|
||||
{
|
||||
// 1. Return false.
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue