diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-24 16:01:24 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-24 17:18:07 +0200 |
commit | 398c181c799f728739c1ee2184b8638554b3353c (patch) | |
tree | f3359393325fc8da02ecb78981a1f87c458246f2 /Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp | |
parent | 715e7fada8ed00a7680bb8f4ed65afd3026d3d59 (diff) | |
download | serenity-398c181c799f728739c1ee2184b8638554b3353c.zip |
LibJS: Rename PropertyName to PropertyKey
Let's use the same name as the spec. :^)
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp b/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp index 831bc5d00d..b8f577a097 100644 --- a/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp @@ -285,7 +285,7 @@ JS_DEFINE_OLD_NATIVE_FUNCTION(ObjectConstructor::get_own_property_descriptors) // 4. For each element key of ownKeys, do for (auto& key : own_keys) { - auto property_name = PropertyName::from_value(global_object, key); + auto property_name = PropertyKey::from_value(global_object, key); // a. Let desc be ? obj.[[GetOwnProperty]](key). auto desc = TRY_OR_DISCARD(object->internal_get_own_property(property_name)); @@ -425,7 +425,7 @@ JS_DEFINE_OLD_NATIVE_FUNCTION(ObjectConstructor::assign) // iii. For each element nextKey of keys, do for (auto& next_key : keys) { - auto property_name = PropertyName::from_value(global_object, next_key); + auto property_name = PropertyKey::from_value(global_object, next_key); // 1. Let desc be ? from.[[GetOwnProperty]](nextKey). auto desc = TRY_OR_DISCARD(from->internal_get_own_property(property_name)); |