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