Sign in
webkit
/
WebKit
/
3f5c8223f194ebdf9b1757bffc0e0ee161b7edab
/
.
/
JSTests
/
stress
/
impure-get-own-property-slot-inline-cache.js
blob: bb376def1edaea99169edd0b73829e5e369b2e2c [
file
] [
log
] [
blame
]
var
ig
=
createImpureGetter
(
null
);
ig
.
x
=
42
;
var
foo
=
function
(
o
)
{
return
o
.
x
;
};
noInline
(
foo
);
for
(
var
i
=
0
;
i
<
10000
;
++
i
)
foo
(
ig
);
setImpureGetterDelegate
(
ig
,
{
x
:
"x"
});
if
(
foo
(
ig
)
!==
"x"
)
throw
new
Error
(
"Incorrect result!"
);