Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testStringObjectLength.js
blob: d908ff63a8fe35752da7102e1532a8775fb86b09 [
file
] [
log
] [
blame
]
function
testStringObjectLength
()
{
var
x
=
new
String
(
"foo"
),
y
=
0
;
for
(
var
i
=
0
;
i
<
10
;
++
i
)
y
=
x
.
length
;
return
y
;
}
assertEq
(
testStringObjectLength
(),
3
);