Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
setprop.js
blob: bb93e1e498f54a48b7f625a3ace2d71dfe6cbb3b [
file
] [
log
] [
blame
]
function
setprop
()
{
var
obj
=
{
a
:-
1
};
var
obj2
=
{
b
:-
1
,
a
:-
1
};
for
(
var
i
=
0
;
i
<
20
;
i
++)
{
obj2
.
b
=
obj
.
a
=
i
;
}
return
[
obj
.
a
,
obj2
.
a
,
obj2
.
b
].
toString
();
}
assertEq
(
setprop
(),
"19,-1,19"
);