mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
LibWeb: Refer a spec issue in Location::internal_get_own_property
This commit is contained in:
parent
361c6f1b64
commit
4cd1ef12d7
Notes:
github-actions[bot]
2024-12-20 14:01:07 +00:00
Author: https://github.com/shlyakpavel Commit: https://github.com/LadybirdBrowser/ladybird/commit/4cd1ef12d7b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2667 Reviewed-by: https://github.com/gmta Reviewed-by: https://github.com/yyny
1 changed files with 1 additions and 0 deletions
|
@ -522,6 +522,7 @@ JS::ThrowCompletionOr<Optional<JS::PropertyDescriptor>> Location::internal_get_o
|
|||
auto descriptor = MUST(Object::internal_get_own_property(property_key));
|
||||
|
||||
// 2. If the value of the [[DefaultProperties]] internal slot of this contains P, then set desc.[[Configurable]] to true.
|
||||
// FIXME: This doesn't align with what the other browsers do. Spec issue: https://github.com/whatwg/html/issues/4157
|
||||
auto property_key_value = property_key.is_symbol()
|
||||
? JS::Value { property_key.as_symbol() }
|
||||
: JS::PrimitiveString::create(vm, property_key.to_string());
|
||||
|
|
Loading…
Reference in a new issue