Sign in
webkit
/
WebKit
/
e83748a3d986d861713edbad6b20589c06c9b99f
/
.
/
JSTests
/
stress
/
string-char-at-constant-index-out-of-range.js
blob: dba390faa404dee5054971f30a78db27b594f68b [
file
] [
log
] [
blame
]
function
shouldBe
(
actual
,
expected
)
{
if
(
actual
!==
expected
)
throw
new
Error
(
'bad value: '
+
actual
);
}
function
test
(
string
)
{
return
string
.
charAt
(
0
);
}
noInline
(
test
);
for
(
var
i
=
0
;
i
<
1e6
;
++
i
)
shouldBe
(
test
(
""
),
""
);