Sign in
webkit
/
WebKit
/
36b74c3900290f2598b1d40cf6065a7028fc4a34
/
.
/
JSTests
/
microbenchmarks
/
setter.js
blob: d1eda0497faf099c16234353b397eee8a8c5a941 [
file
] [
log
] [
blame
]
(
function
()
{
var
o
=
{
_f
:
42
};
o
.
__defineSetter__
(
"f"
,
function
(
value
)
{
this
.
_f
=
value
;
});
var
n
=
2000000
;
for
(
var
i
=
0
;
i
<
n
;
++
i
)
o
.
f
=
i
;
if
(
o
.
_f
!=
n
-
1
)
throw
"Error: bad result: "
+
o
.
_f
;
})();