mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibJS: Rename ErrorType::ProxyGetOwnDescriptor{Undef => Undefined}Return
This seems like an unnecessary and uncommon abbreviation.
This commit is contained in:
parent
cab3049dcc
commit
f253f68768
Notes:
sideshowbarker
2024-07-18 23:52:38 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/f253f687688 Pull-request: https://github.com/SerenityOS/serenity/pull/4942
2 changed files with 4 additions and 4 deletions
|
@ -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: " \
|
||||
|
|
|
@ -248,7 +248,7 @@ Optional<PropertyDescriptor> ProxyObject::get_own_property_descriptor(const Prop
|
|||
}
|
||||
if (!m_target.is_extensible()) {
|
||||
if (!vm.exception())
|
||||
vm.throw_exception<TypeError>(global_object(), ErrorType::ProxyGetOwnDescriptorUndefReturn);
|
||||
vm.throw_exception<TypeError>(global_object(), ErrorType::ProxyGetOwnDescriptorUndefinedReturn);
|
||||
return {};
|
||||
}
|
||||
return {};
|
||||
|
|
Loading…
Reference in a new issue