Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
ion
/
nursery-getter-setter2.js
blob: 3ad3b47e5bad8468f7c2b89394bcde384cd529cc [
file
] [
log
] [
blame
]
function
g
(
o
,
i
)
{
o
.
foo
=
i
;
assertEq
(
o
.
foo
,
i
+
1
);
}
function
f
()
{
var
o2
=
Object
.
create
({
get
foo
()
{
return
this
.
x
;
},
set
foo
(
x
)
{
this
.
x
=
x
+
1
;
}});
for
(
var
i
=
0
;
i
<
1200
;
i
++)
{
g
(
o2
,
i
);
}
}
f
();