Sign in
webkit
/
WebKit
/
ff4cb3c2323f3937e96e08f4f6fbe6c7755f9da5
/
.
/
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
;
})();