Sign in
webkit
/
WebKit
/
ff4cb3c2323f3937e96e08f4f6fbe6c7755f9da5
/
.
/
LayoutTests
/
js
/
script-tests
/
dfg-to-string-on-cell.js
blob: e6fe02b9e701701aa12c6706724d9832718bc7d5 [
file
] [
log
] [
blame
]
description
(
"Tests that ToString on a cell works."
);
function
foo
(
a
,
o
)
{
return
[
a
,
String
(
o
)];
}
for
(
var
i
=
0
;
i
<
100
;
++
i
)
shouldBe
(
"\"\" + foo(\"foo\", i % 2 ? \"hello\" : [1, 2, 3])"
,
i
%
2
?
"\"foo,hello\""
:
"\"foo,1,2,3\""
);