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