Sign in
webkit
/
WebKit
/
5c46bef7ab98d4e8242fd1cdbd4a8339e4d4801f
/
.
/
JSTests
/
stress
/
get-by-val-with-string-getter.js
blob: 858ec0a86db954d847f6b8f762d296bedceb1bf5 [
file
] [
log
] [
blame
]
var
object
=
{
get
hello
()
{
return
42
;
}
};
function
ok
()
{
var
value
=
'hello'
;
if
(
object
[
value
]
+
20
!==
62
)
throw
new
Error
();
}
noInline
(
ok
);
for
(
var
i
=
0
;
i
<
10000
;
++
i
)
ok
();