mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
LibJS: Handle "receiver" argument in Reflect.{get,set}()
This commit is contained in:
parent
f08aa6324e
commit
afcfea2001
7 changed files with 60 additions and 17 deletions
|
@ -363,7 +363,7 @@ bool ProxyObject::has_property(PropertyName name) const
|
|||
return trap_result;
|
||||
}
|
||||
|
||||
Value ProxyObject::get(PropertyName name) const
|
||||
Value ProxyObject::get(PropertyName name, Value) const
|
||||
{
|
||||
if (m_is_revoked) {
|
||||
interpreter().throw_exception<TypeError>(ErrorType::ProxyRevoked);
|
||||
|
@ -395,7 +395,7 @@ Value ProxyObject::get(PropertyName name) const
|
|||
return trap_result;
|
||||
}
|
||||
|
||||
bool ProxyObject::put(PropertyName name, Value value)
|
||||
bool ProxyObject::put(PropertyName name, Value value, Value)
|
||||
{
|
||||
if (m_is_revoked) {
|
||||
interpreter().throw_exception<TypeError>(ErrorType::ProxyRevoked);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue