Sign in
webkit
/
WebKit
/
293423b2e3bc99a3b6b08c9e39c59d8eb89f00e1
/
.
/
LayoutTests
/
js
/
script-tests
/
dfg-getter.js
blob: 44353e345f44d03493a08837f05ed2444a900535 [
file
] [
log
] [
blame
]
description
(
"Tests that DFG getter caching does not break the world."
);
function
foo
(
o
)
{
return
o
.
f
;
}
for
(
var
i
=
0
;
i
<
200
;
++
i
)
{
var
o
=
new
Object
();
o
.
__defineGetter__
(
"f"
,
function
(){
return
i
;
});
shouldBe
(
"foo(o)"
,
""
+
i
);
}