Sign in
webkit
/
WebKit
/
b02737e0dcbaa3a4c4e66931839e0609e605d359
/
.
/
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
;