Sign in
webkit
/
WebKit
/
4a12667b4cecb17e84375f8db50c9b2d39b06fe4
/
.
/
JSTests
/
microbenchmarks
/
getter-no-activation.js
blob: 029d25be8a4376959c4998ba88bb54894d545656 [
file
] [
log
] [
blame
]
(
function
()
{
var
o
=
{
_f
:
42
};
o
.
__defineGetter__
(
"f"
,
function
()
{
return
this
.
_f
;
});
(
function
()
{
var
result
=
0
;
var
n
=
2000000
;
for
(
var
i
=
0
;
i
<
n
;
++
i
)
result
+=
o
.
f
;
if
(
result
!=
n
*
42
)
throw
"Error: bad result: "
+
result
;
})();
})();