Sign in
webkit
/
WebKit
/
9f9c15eb6fdc193d77c7e606d643d4b8ec49399b
/
.
/
JSTests
/
es6
/
Proxy_has_handler_instances_of_proxies.js
blob: 94c4180891790932fbd7d2cd6eee9287696ffb60 [
file
] [
log
] [
blame
]
function
test
()
{
var
proxied
=
{};
var
passed
=
false
;
"foo"
in
Object
.
create
(
new
Proxy
(
proxied
,
{
has
:
function
(
t
,
k
)
{
passed
=
t
===
proxied
&&
k
===
"foo"
;
}
}));
return
passed
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);