mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS: Handle "receiver" argument in Reflect.{get,set}()
This commit is contained in:
parent
f08aa6324e
commit
afcfea2001
Notes:
sideshowbarker
2024-07-19 05:23:42 +09:00
Author: https://github.com/linusg
Commit: afcfea2001
Pull-request: https://github.com/SerenityOS/serenity/pull/2626
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