Sign in
webkit
/
WebKit
/
c6951ff6f7d972427c05df8e7c39e3f2d74bf29c
/
.
/
JSTests
/
es6
/
Proxy_get_handler.js
blob: b208ed46e617922f309a811468d1baaee527a4ed [
file
] [
log
] [
blame
]
function
test
()
{
var
proxied
=
{
};
var
proxy
=
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"
);