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