Sign in
webkit
/
WebKit
/
8811b522c4d9fd9fbebc2e2caf8f1ebff78163f9
/
.
/
JSTests
/
es6
/
Proxy_get_handler_instances_of_proxies.js
blob: 14f4fe9d5567218eca0b6e3f282d833258204ec6 [
file
] [
log
] [
blame
]
function
test
()
{
var
proxied
=
{
};
var
proxy
=
Object
.
create
(
new
Proxy
(
proxied
,
{
get
:
function
(
t
,
k
,
r
)
{
return
t
===
proxied
&&
k
===
"foo"
&&
r
===
proxy
&&
5
;
}
}));
return
proxy
.
foo
===
5
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);