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