Sign in
webkit
/
WebKit
/
63c63479e42d5d7cd9e5c20fa3c0adb62aed122e
/
.
/
JSTests
/
stress
/
array-tolocalestring-undefined-null.js
blob: 1e0b083f42edae3b97ba9017444f02d479e6c0a9 [
file
] [
log
] [
blame
]
function
shouldBe
(
actual
,
expected
)
{
if
(
actual
!==
expected
)
throw
new
Error
(
'bad value: '
+
actual
);
}
shouldBe
([{
toLocaleString
(){}}].
toLocaleString
(),
`
undefined
`);
shouldBe
([{
toLocaleString
(){
return
null
}}].
toLocaleString
(),
`
null
`);