mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
LibJS+LibWeb: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr
This commit is contained in:
parent
1df3652e27
commit
7c0c1c8f49
214 changed files with 825 additions and 827 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
namespace JS {
|
||||
|
||||
static HashMap<Object const*, HashMap<DeprecatedFlyString, Object::IntrinsicAccessor>> s_intrinsics;
|
||||
static HashMap<GCPtr<Object const>, HashMap<DeprecatedFlyString, Object::IntrinsicAccessor>> s_intrinsics;
|
||||
|
||||
// 10.1.12 OrdinaryObjectCreate ( proto [ , additionalInternalSlotsList ] ), https://tc39.es/ecma262/#sec-ordinaryobjectcreate
|
||||
NonnullGCPtr<Object> Object::create(Realm& realm, Object* prototype)
|
||||
|
@ -813,7 +813,7 @@ ThrowCompletionOr<Value> Object::internal_get(PropertyKey const& property_key, V
|
|||
VERIFY(descriptor->is_accessor_descriptor());
|
||||
|
||||
// 5. Let getter be desc.[[Get]].
|
||||
auto* getter = *descriptor->get;
|
||||
auto getter = *descriptor->get;
|
||||
|
||||
// 6. If getter is undefined, return undefined.
|
||||
if (!getter)
|
||||
|
@ -911,7 +911,7 @@ ThrowCompletionOr<bool> Object::ordinary_set_with_own_descriptor(PropertyKey con
|
|||
VERIFY(own_descriptor->is_accessor_descriptor());
|
||||
|
||||
// 4. Let setter be ownDesc.[[Set]].
|
||||
auto* setter = *own_descriptor->set;
|
||||
auto setter = *own_descriptor->set;
|
||||
|
||||
// 5. If setter is undefined, return false.
|
||||
if (!setter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue