Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
defaultvalue-toString-is-noncallable-object.js
blob: f0a30d11583e8fedade3a8e5a51d574700c13aee [
file
] [
log
] [
blame
]
var
obj
=
{
toString
:
{},
valueOf
:
function
()
{
return
"foopy"
;
}
};
for
(
var
i
=
0
;
i
<
25
;
i
++)
assertEq
(
String
(
obj
),
"foopy"
);