Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
stress
/
empty-string-join.js
blob: a2f47e41404beb3332b7ad0fd29d7212d16e3222 [
file
] [
log
] [
blame
] [
edit
]
function
shouldBe
(
actual
,
expected
)
{
if
(
actual
!==
expected
)
throw
new
Error
(
'bad value: '
+
actual
);
}
shouldBe
([].
join
(
''
),
''
);
shouldBe
([
''
,
''
].
join
(
''
),
''
);
shouldBe
([
'a'
,
'b'
].
join
(
''
),
'ab'
);