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