Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
ion
/
getelem-string.js
blob: b187e5b68bcccafdaa021912dd64954c8478ed1f [
file
] [
log
] [
blame
]
function
test1
()
{
function
getchar
(
s
,
i
)
{
return
s
[
i
];
}
for
(
var
i
=
0
;
i
<
70
;
i
++)
{
assertEq
(
getchar
(
"foo"
,
0
),
"f"
);
assertEq
(
getchar
(
"bar"
,
2
),
"r"
);
}
assertEq
(
getchar
(
"foo"
,
3
),
undefined
);
}
test1
();