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