Sign in
webkit
/
WebKit
/
1301b5dddcb28e452a3a8911596f68f5704bd0a8
/
.
/
JSTests
/
es6
/
Proxy_deleteProperty_handler.js
blob: a2c4728713f7ae2bf0158ce8484070cde4a58b22 [
file
] [
log
] [
blame
]
function
test
()
{
var
proxied
=
{};
var
passed
=
false
;
delete
new
Proxy
(
proxied
,
{
deleteProperty
:
function
(
t
,
k
)
{
passed
=
t
===
proxied
&&
k
===
"foo"
;
}
}).
foo
;
return
passed
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);