Sign in
webkit
/
WebKit
/
6b7c45f751131450b1675ef5b4b89fb3a0e35aba
/
.
/
JSTests
/
microbenchmarks
/
destructuring-parameters-overridden-by-function.js
blob: 96744eb0f73ff6a541c6ac65b138679bee00bad8 [
file
] [
log
] [
blame
]
function
f
()
{
return
40
;
}
function
test
({
arg
})
{
function
arg
()
{
return
41
;
}
return
arg
;
}
noInline
(
test
);
for
(
var
i
=
0
;
i
<
1000
;
i
++)
{
if
(
test
({
arg
:
f
})()
!==
41
)
throw
new
Error
(
"bad value"
);
}