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