Sign in
webkit
/
WebKit
/
5bd663b95d2fa0048c9b51d7e90d3c09992ceb28
/
.
/
JSTests
/
es6
/
Proxy_internal_set_calls_Array.prototype.pop.js
blob: 08b7f4037a95e20bfb175c9b28c1d463a61d913c [
file
] [
log
] [
blame
]
function
test
()
{
// Array.prototype.pop -> Set -> [[Set]]
var
set
=
[];
var
p
=
new
Proxy
([],
{
set
:
function
(
o
,
k
,
v
)
{
set
.
push
(
k
);
o
[
k
]
=
v
;
return
true
;
}});
p
.
pop
();
return
set
+
''
===
"length"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);