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