mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 23:56:06 +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
|
@ -12,6 +12,7 @@
|
|||
#include <AK/String.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibJS/Runtime/Completion.h>
|
||||
#include <LibJS/Runtime/IndexedProperties.h>
|
||||
#include <LibJS/Runtime/MarkedValueList.h>
|
||||
#include <LibJS/Runtime/PrimitiveString.h>
|
||||
|
@ -90,7 +91,7 @@ public:
|
|||
|
||||
// 10.1 Ordinary Object Internal Methods and Internal Slots, https://tc39.es/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots
|
||||
|
||||
virtual Object* internal_get_prototype_of() const;
|
||||
virtual ThrowCompletionOr<Object*> internal_get_prototype_of() const;
|
||||
virtual bool internal_set_prototype_of(Object* prototype);
|
||||
virtual bool internal_is_extensible() const;
|
||||
virtual bool internal_prevent_extensions();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue