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