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