From 6f01d386b966eaa6800e978abd6612c77772479f Mon Sep 17 00:00:00 2001 From: Pavel Shliak Date: Mon, 9 Dec 2024 15:55:18 +0400 Subject: [PATCH] LibWeb: Refer a spec issue in Location::internal_get_own_property (cherry picked from commit 4cd1ef12d7bdddc7cbb235350d50fee65fbd5f34) --- Userland/Libraries/LibWeb/HTML/Location.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibWeb/HTML/Location.cpp b/Userland/Libraries/LibWeb/HTML/Location.cpp index 9333219e0d0a0e..33ad827c782c8c 100644 --- a/Userland/Libraries/LibWeb/HTML/Location.cpp +++ b/Userland/Libraries/LibWeb/HTML/Location.cpp @@ -529,6 +529,7 @@ JS::ThrowCompletionOr> 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());