Sign in
webkit
/
WebKit
/
77b63b8e6a326c64f4e14dec31520d24b21e7c7f
/
.
/
JSTests
/
microbenchmarks
/
by-val-generic.js
blob: 93e5663cdc8a93c482ea8153793879a5e1c46ba6 [
file
] [
log
] [
blame
]
function
foo
(
a
,
b
,
c
)
{
a
[
b
]
=
c
;
return
a
[
b
];
}
noInline
(
foo
);
for
(
var
i
=
0
;
i
<
100000
;
++
i
)
{
var
result
=
foo
({},
"foo"
,
"bar"
);
if
(
result
!==
"bar"
)
throw
"Error: bad result: "
+
result
;
}