mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 08:51:57 +00:00
LibJS: Convert internal_get_prototype_of() to ThrowCompletionOr
This commit is contained in:
parent
c8bf7f9c41
commit
5148150e1c
Notes:
sideshowbarker
2024-07-18 03:19:38 +09:00
Author: https://github.com/linusg
Commit: 5148150e1c
Pull-request: https://github.com/SerenityOS/serenity/pull/10266
Reviewed-by: https://github.com/IdanHo ✅
14 changed files with 48 additions and 70 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibJS/Runtime/Completion.h>
|
||||
#include <LibJS/Runtime/FunctionObject.h>
|
||||
|
||||
namespace JS {
|
||||
|
@ -34,7 +35,7 @@ public:
|
|||
|
||||
// 10.5 Proxy Object Internal Methods and Internal Slots, https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots
|
||||
|
||||
virtual Object* internal_get_prototype_of() const override;
|
||||
virtual ThrowCompletionOr<Object*> internal_get_prototype_of() const override;
|
||||
virtual bool internal_set_prototype_of(Object* prototype) override;
|
||||
virtual bool internal_is_extensible() const override;
|
||||
virtual bool internal_prevent_extensions() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue