Sign in
webkit
/
WebKit
/
38af2d11a53891d36db2adc946c621e143cf63f2
/
.
/
JSTests
/
microbenchmarks
/
try-catch-get-by-val-cloned-arguments.js
blob: 26c9589fefa37a610663751bef0b97b00e6e5003 [
file
] [
log
] [
blame
]
function
foo
()
{
"use strict"
;
try
{
return
arguments
[
0
];
}
catch
(
e
)
{
return
42
;
}
}
var
n
=
100000
;
var
result
=
0
;
for
(
var
i
=
0
;
i
<
n
;
++
i
)
result
+=
foo
(
24
);
if
(
result
!=
n
*
24
)
throw
"Error: bad result: "
+
result
;