From f253f687688cfda6d5c6fe19456e5fd3ecd803b8 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 13 Jan 2021 20:35:46 +0100 Subject: [PATCH] LibJS: Rename ErrorType::ProxyGetOwnDescriptor{Undef => Undefined}Return This seems like an unnecessary and uncommon abbreviation. --- Userland/Libraries/LibJS/Runtime/ErrorTypes.h | 6 +++--- Userland/Libraries/LibJS/Runtime/ProxyObject.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibJS/Runtime/ErrorTypes.h b/Userland/Libraries/LibJS/Runtime/ErrorTypes.h index a66bcb41315..65b23c6a63a 100644 --- a/Userland/Libraries/LibJS/Runtime/ErrorTypes.h +++ b/Userland/Libraries/LibJS/Runtime/ErrorTypes.h @@ -111,9 +111,9 @@ "a non-configurable property") \ M(ProxyGetOwnDescriptorReturn, "Proxy handler's getOwnPropertyDescriptor trap violates " \ "invariant: must return an object or undefined") \ - M(ProxyGetOwnDescriptorUndefReturn, "Proxy handler's getOwnPropertyDescriptor trap " \ - "violates invariant: cannot report a property as being undefined if it exists as an " \ - "own property of the target and the target is non-extensible") \ + M(ProxyGetOwnDescriptorUndefinedReturn, "Proxy handler's getOwnPropertyDescriptor trap " \ + "violates invariant: cannot report a property as being undefined if it exists as an " \ + "own property of the target and the target is non-extensible") \ M(ProxyGetPrototypeOfNonExtensible, "Proxy handler's getPrototypeOf trap violates " \ "invariant: cannot return a different prototype object for a non-extensible target") \ M(ProxyGetPrototypeOfReturn, "Proxy handler's getPrototypeOf trap violates invariant: " \ diff --git a/Userland/Libraries/LibJS/Runtime/ProxyObject.cpp b/Userland/Libraries/LibJS/Runtime/ProxyObject.cpp index 85a0d9db1b1..6386022b1ee 100644 --- a/Userland/Libraries/LibJS/Runtime/ProxyObject.cpp +++ b/Userland/Libraries/LibJS/Runtime/ProxyObject.cpp @@ -248,7 +248,7 @@ Optional ProxyObject::get_own_property_descriptor(const Prop } if (!m_target.is_extensible()) { if (!vm.exception()) - vm.throw_exception(global_object(), ErrorType::ProxyGetOwnDescriptorUndefReturn); + vm.throw_exception(global_object(), ErrorType::ProxyGetOwnDescriptorUndefinedReturn); return {}; } return {};