mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 08:30:50 +00:00
LibJS: Make internal_define_own_property() save added property offset
...in `PropertyDescriptor`. This is required for the upcoming change that needs to know offset of newly added properties to set up inline caching.
This commit is contained in:
parent
ede6314cb6
commit
a54215c07d
Notes:
github-actions[bot]
2025-09-17 10:45:42 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: a54215c07d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6204
32 changed files with 88 additions and 60 deletions
|
|
@ -109,7 +109,7 @@ ThrowCompletionOr<Optional<PropertyDescriptor>> StringObject::internal_get_own_p
|
|||
}
|
||||
|
||||
// 10.4.3.2 [[DefineOwnProperty]] ( P, Desc ), https://tc39.es/ecma262/#sec-string-exotic-objects-defineownproperty-p-desc
|
||||
ThrowCompletionOr<bool> StringObject::internal_define_own_property(PropertyKey const& property_key, PropertyDescriptor const& property_descriptor, Optional<PropertyDescriptor>* precomputed_get_own_property)
|
||||
ThrowCompletionOr<bool> StringObject::internal_define_own_property(PropertyKey const& property_key, PropertyDescriptor& property_descriptor, Optional<PropertyDescriptor>* precomputed_get_own_property)
|
||||
{
|
||||
// 1. Let stringDesc be StringGetOwnProperty(S, P).
|
||||
auto string_descriptor = TRY(string_get_own_property(*this, property_key));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue